Merge pull request #1151 from paulromano/pandas-fix

Fix export of atomic relaxation transition data for pandas 0.24.0
This commit is contained in:
Patrick Shriwise 2019-01-30 17:27:31 -06:00 committed by GitHub
commit 57adc4909d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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]