• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

terrapower / armi / 5978350895
90%
master: 87%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 25 Aug 2023 05:07PM CUT
Jobs 1
Files 273
Run time 9s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Aug 2023 04:44PM CUT coverage: 88.063% (+0.03%) from 88.033%
5978350895

push

github

web-flow
Refactor armi.reactor.grids to wider submodule; Grids as ABC (#1373)

* Move grids.py to own module armi.reactor.grids

Goal is to introduce separate files for each grid type, but still
make those importable from armi.reactor.grids

* Add armi.reactor.grids.constants

Intended to share some constants and type hints across the
`armi.reactor.grids` submodule. Intentionally sparse.

Items will be imported into `armi.reactor.grids` to help with
back compatibility.

* Add armi.reactor.grids.locations

Provides abstract `LocationBase` as the interface defining base class.
Concrete subclasses `IndexLocation`, `MultiIndexLocation`, and
`CoordinateLocation` are also defined.

There is little to no implementation differences in this change. Only
that `LocationBase` is a proper abstract base class, so subclasses that
don't override the necessary abstract methods will need to change. Some
other key changes

- `LocationBase.__eq__` returns `NotImplemented` if the RHS argument
  is not a tuple nor a `LocationBase`

The four main classes defined are imported into `armi.reactor.grids`
to maintain back compatibility.

* Move reactor/tests/test_grids to grids/tests

* Add armi.reactor.grids.grid for Grid base class

Imported into `armi.reactor.grids` so still back compatible

* Add armi.reactor.grids.cartesian for CartesianGrid

* Add armi.reactor.grids.hexagonal

* Add armi.reactor.grids.thetarz

* Remove six.cPickle -> pickle in test_grids.py

* Add armi.reactor.grids.axial with AxialGrid class

Replaces grids.axialUnitGrid

* Move duplicated grids.addingIsValid to grids.locations

* Refactor Grid to be ABC, intermediate StructuredGrid

Heavier lift, but the classes defined in `armi.reactor.grids`
follow this inheritance pattern

- `Grid(abc.ABC)` :: abstract interface for _a_ grid, or things that reside in
  space
  - `StructuredGrid(Grid)` :: still abstract, but for things that have
    some structure, known... (continued)

752 of 752 new or added lines in 9 files covered. (100.0%)

26854 of 30494 relevant lines covered (88.06%)

0.88 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
98.95
armi/reactor/grids/cartesian.py
1
98.63
armi/reactor/grids/grid.py
2
96.08
armi/reactor/grids/thetarz.py
3
90.32
armi/reactor/grids/axial.py
6
96.08
armi/reactor/grids/structuredgrid.py
9
94.51
armi/reactor/grids/hexagonal.py
17
89.7
armi/reactor/grids/locations.py
Jobs
ID Job ID Ran Files Coverage
1 5978350895.1 25 Aug 2023 05:07PM CUT 273
88.06
GitHub Action Run
Source Files on build 5978350895
  • Tree
  • List 273
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
21.98
armi/scripts/migration/m0_1_0_newDbFormat.py180 91 20 71 1.0
31.11
armi/nuclearDataIO/cccc/fixsrc.py142 45 14 31 1.0
34.29
armi/bookkeeping/visualization/entryPoint.py178 70 24 46 1.0
37.1
...i/physics/neutronics/macroXSGenerationInterface.py204 62 23 39 1.0
37.18
...ipts/migration/crossSectionBlueprintsToSettings.py172 78 29 49 1.0
46.55
armi/operators/operatorMPI.py250 116 54 62 1.0
48.28
armi/cli/migrateInputs.py77 29 14 15 1.0
48.33
armi/bookkeeping/db/__init__.py260 60 29 31 1.0
50.0
armi/cases/suite.py352 102 51 51 1.0
55.56
armi/cli/reportsEntryPoint.py178 72 40 32 1.0
Showing 1 to 10 of 273 entries
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 28
  • Next
  • ►
    88.06
    armi/
  • Back to Repo
  • 5e76197d on github
  • Prev Build on main (#5967976592)
  • Next Build on main (#5994904557)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc