From 1f3280461fa41e22dbc563324c98fcf53179d61b Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Tue, 11 Jun 2024 21:49:01 -0500 Subject: [PATCH] Make sure skewed dataset is cast to bool properly (#3001) --- openmc/data/njoy.py | 2 +- openmc/data/thermal_angle_energy.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openmc/data/njoy.py b/openmc/data/njoy.py index c1dcbab17f5..ac1b5e345ea 100644 --- a/openmc/data/njoy.py +++ b/openmc/data/njoy.py @@ -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. diff --git a/openmc/data/thermal_angle_energy.py b/openmc/data/thermal_angle_energy.py index 0dd2a0b7a51..4789ebcc6f2 100644 --- a/openmc/data/thermal_angle_energy.py +++ b/openmc/data/thermal_angle_energy.py @@ -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)