-
Notifications
You must be signed in to change notification settings - Fork 11
Addition of ITER 1D OpenMC #426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughAdds a new OpenMC 1D benchmark YAML with reusable radius-based cell mappings and flux replacements, introduces corresponding test metadata for a dummy OpenMC run, and extends the post-processing test suite with an OpenMC-specific raw processing test guarded by availability. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor PyTest as PyTest
participant Test as test_ITER1D_raw_openmc
participant RawProc as RawProcessor
participant FS as File System
PyTest->>Test: Run (if OMC_AVAIL)
Test->>FS: Load ITER_1D.yaml and metadata.json
Test->>RawProc: process_raw(temp_dir, config_path)
RawProc->>FS: Read YAML (OpenMC/ITER_1D)
RawProc->>RawProc: Resolve radii anchor
RawProc->>RawProc: Apply replace directives to Fluxes (rows 16, 26, 204, 214)
RawProc->>FS: Write processed outputs
RawProc-->>Test: Result/Status
Test-->>PyTest: Assert success
note over RawProc: Changed interaction: uses shared radii anchor for multiple flux sections
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
🧰 Additional context used🧬 Code graph analysis (1)tests/post/test_raw_processor.py (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
|
Not sure why the Windows tests are not passing now, seems to be a developing issue as Martas PR having same problem. |
Description
OpenMC YAML file prepared to used ITER 1D OpenMC in JADE/
Limited tally set currently based on OpenMC capabilities. First b'mark for demonstration of use of compiled source terms end to end.
Type of change
Please select what type of change this is.
Other changes
Testing
Addition of tests of raw data processing
Checklist:
Summary by CodeRabbit