Fixed a bug in reading kTs from HDF5 library on the python side

This commit is contained in:
Adam Nelson 2016-08-24 05:26:42 -04:00
parent d83f8930c6
commit 07d62fc9ae
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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)