Skip to content

Commit e90b1ac

Browse files
author
dpscience
committed
fit results output
fit results output
1 parent a15e9b0 commit e90b1ac

5 files changed

Lines changed: 277 additions & 83 deletions

File tree

DReconvolutionInput.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
__channelResolutionInPs = 5.0
4141

4242
#expected lifetimes (tau) -> start values (levenberg marquardt fit)
43-
__expectedTau_1_in_ps = 160.0;
44-
__expectedTau_2_in_ps = 455.0;
43+
__expectedTau_1_in_ps = 260.0;
44+
__expectedTau_2_in_ps = 1500.0;
4545
__expectedTau_3_in_ps = 160.0;
4646
__expectedTau_4_in_ps = 160.0;
4747

@@ -52,11 +52,11 @@
5252
#NOTE: Spectrum and IRF data vectors require equal length!!!
5353

5454
#file path which contains the SPECTRUM data:
55-
__filePathSpec = 'testData/spectrum_5ps.dat'
55+
__filePathSpec = 'testData/spectrum2_5ps.dat'
5656
__specDataDelimiter = '\t'
5757

5858
#file path which contains the IRF data:
59-
__filePathIRF = 'testData/irf_5ps.dat'
59+
__filePathIRF = 'testData/irf2_5ps.dat'
6060
__irfDataDelimiter = '\t'
6161

6262

DReconvolutionModel.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ def Gaussian(x, ampl, sigma, y0, x0, args=()):
5050
h=N*np.exp(-0.5*((x-x0)/sigma)**2);
5151
return ampl*h+y0
5252

53-
def Lorentz_Cauchy(x, ampl, a, wing, y0, x0, args=()):
53+
def Lorentz_Cauchy(x, ampl, s, y0, x0, args=()):
5454
h=np.zeros(x.size)
55-
h=wing/(np.pi*((x-x0)*(x-x0) + wing*wing))
55+
h=s/(np.pi*((x-x0)*(x-x0) + s*s))
5656
return ampl*h+y0
5757

58-
def Pseudovoigt1(x, ampl, a, sigma, wing, y0, x0, args=()):
58+
def Pseudovoigt1(x, ampl, a, sigma, s, y0, x0, args=()):
5959
G=np.zeros(x.size)
6060
L=np.zeros(x.size)
6161
G=(1.0/(sigma*np.sqrt(2*np.pi)))*np.exp(-0.5*((x-x0)/sigma)*((x-x0)/sigma))
62-
L=wing/(np.pi*((x-x0)*(x-x0) + wing*wing))
62+
L=s/(np.pi*((x-x0)*(x-x0) + s*s))
6363
return ampl*(a*G+(1-a)*L)+y0
6464

6565
def Pearson7(x, ampl, alpha, m, y0, x0, args=()):

0 commit comments

Comments
 (0)