Fix export of atomic relaxation transition data for pandas 0.24.0

This commit is contained in:
Paul Romano 2019-01-29 14:37:40 -06:00
parent 57ed2f8e4b
commit ed91913778

View file

@ -735,7 +735,8 @@ class IncidentPhoton(EqualityMixin):
shell_values.insert(0, None)
df = relax.transitions[shell].replace(
shell_values, range(len(shell_values)))
sub_group.create_dataset('transitions', data=df.values)
sub_group.create_dataset(
'transitions', data=df.values.astype(float))
# Determine threshold
threshold = rx.xs.x[0]