def test_sas(): from skultrafast.kinetic_model import Model ds = TimeResSpec(wl, t, data) x0 = [0.1, 0.1, 1, 1000] out = ds.fit_exp(x0) m = Model() m.add_transition('S1', 'S1*', 'k1') m.add_transition('S1', 'zero', 'k2') out.make_sas(m, {}) m2 = Model() m2.add_transition('S1', 'S1*', 'k1', 'qy1') m2.add_transition('S1', 'zero', 'k2') out.make_sas(m2, {'qy1': 0.5})
def test_das_plots(): ds = TimeResSpec(wl, t, data) x0 = [0.1, 0.1, 1, 1000] out = ds.fit_exp(x0) ds.plot.das() ds.plot.edas()
def test_fitter(): ds = TimeResSpec(wl, t, data) x0 = [0.1, 0.1, 1, 1000] out = ds.fit_exp(x0)
def test_error_calc(): ds = TimeResSpec(wl, t, data) x0 = [0.1, 0.1, 1, 1000] out = ds.fit_exp(x0) out.calculate_stats()