Make sure skewed dataset is cast to bool properly (#3001)

This commit is contained in:
Paul Romano 2024-06-11 21:49:01 -05:00 committed by GitHub
parent 8b33615ac2
commit 1f3280461f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -225,7 +225,7 @@ class IncoherentInelasticAEDiscrete(AngleEnergy):
"""
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)