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

terrapower / armi / 12128309580
90%
master: 87%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 02 Dec 2024 09:45PM UTC
Jobs 1
Files 273
Run time 1min
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

02 Dec 2024 09:29PM UTC coverage: 90.254% (+0.02%) from 90.233%
12128309580

push

github

web-flow
Improving getOptimalAssemblyOrientation (#2019)

Improving  getOptimalAssemblyOrientation

The algorithm goes as follows:

1. Get all the pin powers and `IndexLocation`s from the block at the
   previous location
2. Obtain the `IndexLocation` of the pin with the highest burnup
3. For each possible rotation,
   - Find the new location with `HexGrid.rotateIndex`
   - Find the index where that location occurs in previous locations
   - Find the previous power at that location
4. Return the rotation with the lowest previous power

This algorithm assumes a few things:

1. `len(pinLocations) == len(pinPowers)` in both cases. This may make
   sense, but we've found some cases where this assumption breaks. Not
   even edge cases, like the C5G7 LWR benchmark.
2. Your assembly has at least 60 degree symmetry of fuel pins and
   powers. This means if we find a fuel pin with high burnup and rotate
   it 60 degrees, there should be another fuel pin at that lattice site.
   This is mostly a safe assumption since many hexagonal reactors have
   at least 60 degree symmetry of fuel pin layout. This assumption holds
   if you have a full hexagonal lattice of fuel pins as well.

---------

Co-authored-by: John Stilley <1831479+john-science@users.noreply.github.com>

100 of 107 new or added lines in 4 files covered. (93.46%)

27338 of 30290 relevant lines covered (90.25%)

0.9 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
97.83
8.08% armi/physics/fuelCycle/assemblyRotationAlgorithms.py
2
95.74
armi/physics/fuelCycle/utils.py
4
88.78
0.73% armi/physics/fuelCycle/hexAssemblyFuelMgmtUtils.py
Jobs
ID Job ID Ran Files Coverage
1 12128309580.1 02 Dec 2024 09:45PM UTC 273
90.25
GitHub Action Run
Source Files on build 12128309580
  • Tree
  • List 273
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12128309580
  • 7ef56519 on github
  • Prev Build on main (#12040985746)
  • Next Build on main (#12130389167)
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

© 2026 Coveralls, Inc