From ac156ba380ccdde26fbd5cdea0aef25656f0f52c Mon Sep 17 00:00:00 2001 From: Adam Nelson Date: Sun, 7 May 2017 04:32:37 -0400 Subject: [PATCH] fixed MGXSLibrary.from_hdf5 issue --- openmc/mgxs_library.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openmc/mgxs_library.py b/openmc/mgxs_library.py index 6950d646cb..8fcf93cb9e 100644 --- a/openmc/mgxs_library.py +++ b/openmc/mgxs_library.py @@ -9,7 +9,7 @@ import h5py import openmc import openmc.mgxs from openmc.checkvalue import check_type, check_value, check_greater_than, \ - check_iterable_type, check_less_than + check_iterable_type, check_less_than, check_filetype_version # Supported incoming particle MGXS angular treatment representations @@ -2561,8 +2561,8 @@ class MGXSLibrary(object): file = h5py.File(filename, 'r') # Check filetype and version - cv.check_filetype_version(file, _FILETYPE_MGXS_LIBRARY, - _VERSION_MGXS_LIBRARY) + check_filetype_version(file, _FILETYPE_MGXS_LIBRARY, + _VERSION_MGXS_LIBRARY) group_structure = file.attrs['group structure'] num_delayed_groups = file.attrs['delayed_groups']