mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Fixed a bug in reading kTs from HDF5 library on the python side
This commit is contained in:
parent
d83f8930c6
commit
07d62fc9ae
2 changed files with 2 additions and 2 deletions
|
|
@ -462,7 +462,7 @@ class IncidentNeutron(EqualityMixin):
|
|||
kTg = group['kTs']
|
||||
kTs = []
|
||||
for temp in kTg:
|
||||
kTs.append(temp.value)
|
||||
kTs.append(kTg[temp].value)
|
||||
temperatures = [str(int(round(kT_to_K(kT)))) + "K" for kT in kTs]
|
||||
|
||||
data = cls(name, atomic_number, mass_number, metastable,
|
||||
|
|
|
|||
|
|
@ -441,7 +441,7 @@ class ThermalScattering(EqualityMixin):
|
|||
kTg = group['kTs']
|
||||
kTs = []
|
||||
for temp in kTg:
|
||||
kTs.append(temp.value)
|
||||
kTs.append(kTg[temp].value)
|
||||
temperatures = [str(int(round(kT_to_K(kT)))) + "K" for kT in kTs]
|
||||
|
||||
table = cls(name, atomic_weight_ratio, kTs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue