Skip to content

Commit

Permalink
Make sure skewed dataset is cast to bool properly (#3001)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulromano committed Jun 12, 2024
1 parent 8b33615 commit 1f32804
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openmc/data/njoy.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def make_ace_thermal(filename, filename_thermal, temperatures=None,
error : float, optional
Fractional error tolerance for NJOY processing
iwt : int
`iwt` parameter used in NJOR/ACER card 9
`iwt` parameter used in NJOY/ACER card 9
evaluation : openmc.data.endf.Evaluation, optional
If the ENDF neutron sublibrary file contains multiple material
evaluations, this argument indicates which evaluation to use.
Expand Down
2 changes: 1 addition & 1 deletion openmc/data/thermal_angle_energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def from_hdf5(cls, group):
"""
energy_out = group['energy_out'][()]
mu_out = group['mu_out'][()]
skewed = bool(group['skewed'])
skewed = bool(group['skewed'][()])
return cls(energy_out, mu_out, skewed)


Expand Down

0 comments on commit 1f32804

Please sign in to comment.