Skip to content

Fix Tabular.from_xml_element for histogram case - #3287

Merged
paulromano merged 2 commits into
openmc-dev:developfrom
paulromano:fix-tabular-from-xml
Feb 4, 2025
Merged

paulromano merged 2 commits into
openmc-dev:developfrom
paulromano:fix-tabular-from-xml

Conversation

@paulromano

Copy link
Copy Markdown
Contributor

Description

Due to the change in #2981, I found that Tabular.from_xml_element didn't work for the case when len(x) == len(p) + 1. This PR fixes that.

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)

@paulromano
paulromano requested a review from pshriwise January 31, 2025 14:59

@pshriwise pshriwise left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @paulromano! I like that the slicing is more explicit now. And thanks for addressing the XML parsing as well.

@pshriwise pshriwise added the Merging Soon PR will be merged in < 24 hrs if no further comments are made. label Jan 31, 2025
@paulromano
paulromano merged commit 6e0f156 into openmc-dev:develop Feb 4, 2025
@paulromano
paulromano deleted the fix-tabular-from-xml branch February 4, 2025 16:39
ahnaf-tahmid-chowdhury pushed a commit to ahnaf-tahmid-chowdhury/OpenMC that referenced this pull request Feb 6, 2025
apingegno pushed a commit to apingegno/openmc that referenced this pull request May 7, 2026
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants