mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Make sure filetype gets set correctly for data libraries
This commit is contained in:
parent
05e66155a2
commit
dd9463c288
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ class DataLibrary(EqualityMixin):
|
|||
filename = str(filename)
|
||||
|
||||
with h5py.File(filename, 'r') as h5file:
|
||||
filetype = h5file.attrs['filetype'].decode().lstrip('data_')
|
||||
filetype = h5file.attrs['filetype'].decode()[5:]
|
||||
materials = list(h5file)
|
||||
|
||||
library = {'path': filename, 'type': filetype, 'materials': materials}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue