Skip to content

Comments

Fix None values appearing in cross section data generated with Model.autoconvert#3802

Merged
GuySten merged 1 commit intoopenmc-dev:developfrom
nuclearkevin:automagic_temp_fix
Feb 13, 2026
Merged

Fix None values appearing in cross section data generated with Model.autoconvert#3802
GuySten merged 1 commit intoopenmc-dev:developfrom
nuclearkevin:automagic_temp_fix

Conversation

@nuclearkevin
Copy link
Contributor

Description

When generating isothermal multi-group cross sections with the autoconvert function, None values would show up in the temperature data if 294 isn't included as a data point. This quick PR fixes this error by initializing the XSdata container with the provided temperature points.

Checklist

  • I have performed a self-review of my own code
  • I have run clang-format (version 15) on any C++ source files (if applicable)
  • I have followed the style guidelines for Python source files (if applicable)
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)

Copy link
Contributor

@GuySten GuySten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@GuySten GuySten added the Merging Soon PR will be merged in < 24 hrs if no further comments are made. label Feb 12, 2026
@GuySten GuySten merged commit 19c0aaf into openmc-dev:develop Feb 13, 2026
16 checks passed
@nuclearkevin nuclearkevin deleted the automagic_temp_fix branch February 13, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merging Soon PR will be merged in < 24 hrs if no further comments are made. MGXS Random Ray

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants