-
Notifications
You must be signed in to change notification settings - Fork 2
Code sections
wolfiex edited this page Aug 10, 2018
·
1 revision
Gets the mean lifetime for all species within a run.
run1 = new('run1.h5')
l = alllifetimes(run1)
means = [[f,l[f]['mean']] for f in l if type(l[f]).__name__!='NoneType']
df = pd.DataFrame(np.array(means)).set_index(0).astype(float)
df[1]= [np.log10(d) for d in df[1]]
df.T.to_csv()
df.plot()