Skip to content

Code sections

wolfiex edited this page Aug 10, 2018 · 1 revision

Lifetimes

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

Clone this wiki locally