Skip to content

Commit

Permalink
Sort dataframe index in IsotopeAbundances class
Browse files Browse the repository at this point in the history
  • Loading branch information
vg3095 committed Jul 4, 2017
1 parent aa49e27 commit b609640
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tardis/io/decay.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,7 @@ def decay(self, t):
t_second = u.Quantity(t, u.day).to(u.s).value

decayed_materials = [item.decay(t_second) for item in materials]

return IsotopeAbundances.from_materials(decayed_materials)

df = IsotopeAbundances.from_materials(decayed_materials)
df.sort_index(inplace=True)
return df

0 comments on commit b609640

Please sign in to comment.