Skip to content

Commit 3c442cd

Browse files
author
dpscience
committed
readme update
readme update
1 parent e90b1ac commit 3c442cd

2 files changed

Lines changed: 62 additions & 4 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 = 260.0;
44-
__expectedTau_2_in_ps = 1500.0;
43+
__expectedTau_1_in_ps = 160.0;
44+
__expectedTau_2_in_ps = 455.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/spectrum2_5ps.dat'
55+
__filePathSpec = 'testData/spectrum_5ps.dat'
5656
__specDataDelimiter = '\t'
5757

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

6262

README.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,64 @@ DLTReconvolution - A Python based Software for the Analysis of Lifetime Spectra
66

77
![DLTReconvolution output](/testData/demo.png)
88

9+
### DLTReconvolution consists of 3 python files:
10+
11+
- DReconvolutionInput.py
12+
- DReconvolutionModel.py
13+
- DReconvolutionProc.py
14+
15+
### How to start?
16+
17+
1. edit <b>DReconvolutionInput.py</b>:
18+
19+
```python
20+
#expected number of components (number of exponential decay functions - LIMITED to MAX: 4):
21+
__numberOfExpDec = 2
22+
23+
#channel/bin resolution [ps]
24+
__channelResolutionInPs = 5.0
25+
26+
#expected lifetimes (tau) -> start values (levenberg marquardt fit)
27+
__expectedTau_1_in_ps = 160.0;
28+
__expectedTau_2_in_ps = 455.0;
29+
__expectedTau_3_in_ps = 160.0;
30+
__expectedTau_4_in_ps = 160.0;
31+
32+
#background calculation (right side of spectrum data):
33+
__bkgrd_startIndex = 8000;
34+
__bkgrd_count = 1500;
35+
36+
#NOTE: Spectrum and IRF data vectors require equal length!!!
37+
38+
#file path which contains the SPECTRUM data:
39+
__filePathSpec = 'testData/spectrum_5ps.dat'
40+
__specDataDelimiter = '\t'
41+
42+
#file path which contains the IRF data:
43+
__filePathIRF = 'testData/irf_5ps.dat'
44+
__irfDataDelimiter = '\t'
45+
46+
47+
#using model function for IRF?
48+
__bUsingModel = True
49+
50+
#fit weighting: y variance? w = 1/sqrt(y)
51+
__bUsingYVarAsWeighting = True
52+
53+
#if using model function? choose type of model (also defined in DReconvolutionModel.py):
54+
#------------------
55+
#Gaussian = 1
56+
#Lorentz_Cauchy = 2
57+
#Pseudovoigt1 = 3
58+
#Pearson7 = 4
59+
#------------------
60+
__modelType = reconvModel.Gaussian
61+
```
62+
2. run DReconvolutionProc.py
63+
3. finished!
64+
65+
Note: all parameter estimations required for the best model fit using the levenberg marquardt algorithm are done automatically.
66+
967
# How to cite this Software?
1068

1169
You can cite all versions by using the <b>DOI 10.5281/zenodo.1219522</b>. This DOI represents all versions, and will always resolve to the latest one.<br>

0 commit comments

Comments
 (0)