Skip to content

Commit

Permalink
added check for group name (#2752)
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Nov 2, 2023
1 parent 7aaccbb commit 847e9b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openmc/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1400,6 +1400,7 @@ def from_group_structure(cls, group_structure):
"""

cv.check_value('group_structure', group_structure, openmc.mgxs.GROUP_STRUCTURES.keys())
return cls(openmc.mgxs.GROUP_STRUCTURES[group_structure.upper()])


Expand Down

0 comments on commit 847e9b5

Please sign in to comment.