Repository navigation
Handle the different cases for tallying nuclear heating in OpenMC - #552
alexvalentine94 wants to merge 2 commits into
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 44 minutes. View limit details
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Charged-particle row folding src/jade/helper/openmc.py, tests/helper/test_openmc.py |
Helpers identify electron and positron bins and fold their heating means and uncertainties into photon rows. Tests cover folding behavior and unchanged data. |
Tally matching and integration src/jade/helper/openmc.py, tests/helper/test_openmc.py |
The combination method matches charged-only tallies to photon tallies by non-particle filters and nuclides. Tests cover duplicate contributions, filter mismatches, and statepoint results. |
Priority:
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix
Merge Risk: 
Minimal · previous review 7ff62
-
The heating-tally change is mergeable after normal checks; no actionable issue was established.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 26.32% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 19 functions across 2 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches: 💡 3
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
⚔️ Resolve merge conflicts: 💡
-
- Resolve merge conflict in branch
openmc_photon_heating_combination
- Resolve merge conflict in branch
🛠️ Fix failing CI checks: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit checks the tally rows,
Then folds the charged heat where photon flows.
Means add up, uncertainties align,
No doubled paws cross the line.
The finished rows hop into view.
Comment @coderabbitai help to get the list of available commands.
As detailed in #550, changes to 0.16.0 moved to not requiring explicit positron and electron tallies. These tallies will be zero so backwards compatibility is maintained.
This also now handles the several methods for tallying the heating that were not previously covered.
Summary by CodeRabbit