mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Write tally nuclides as array of strings for HDF5 files
This commit is contained in:
parent
8753f23059
commit
da2bc6b6fe
3 changed files with 81 additions and 78 deletions
|
|
@ -410,11 +410,11 @@ class StatePoint(object):
|
|||
# Read Nuclide bins
|
||||
n_nuclides = self._f['{0}{1}/n_nuclides'.format(base, tally_key)].value
|
||||
|
||||
nuclide_zaids = self._f['{0}{1}/nuclides'.format(base, tally_key)].value
|
||||
nuclide_names = self._f['{0}{1}/nuclides'.format(base, tally_key)].value
|
||||
|
||||
# Add all Nuclides to the Tally
|
||||
for nuclide_zaid in nuclide_zaids:
|
||||
tally.add_nuclide(nuclide_zaid)
|
||||
for name in nuclide_names:
|
||||
tally.add_nuclide(name.decode())
|
||||
|
||||
# Read score bins
|
||||
n_score_bins = self._f['{0}{1}/n_score_bins'.format(base, tally_key)].value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue