|
34 | 34 | from DReconvolutionModel import ReconvolutionModel as reconvModel |
35 | 35 |
|
36 | 36 | #save output as *.txt file after success? |
37 | | -__saveReconvolutionSpectrum = True |
| 37 | +__saveReconvolutionSpectrum = False |
38 | 38 | __saveReconvolutionSpectrumPath = 'testData/recovolutionSpectrumOutput.txt' |
39 | 39 | __saveReconvolutionSpectrumResidualPath = 'testData/recovolutionSpectrumResidualsOutput.txt' |
40 | 40 |
|
41 | | -#!note: IRF output is only saved if a model function is used --> __bUsingModel = True |
42 | | -__saveReconvolutionIRF = True |
| 41 | +#!note: IRF output is only saved if the model function is used, meaning--> (__bUsingModel = True) |
| 42 | +__saveReconvolutionIRF = False |
43 | 43 | __saveReconvolutionIRFPath = 'testData/recovolutionIRFOutput.txt' |
44 | 44 | __saveReconvolutionIRFResidualPath = 'testData/recovolutionIRFResidualsOutput.txt' |
45 | 45 |
|
46 | | -#expected number of components (number of exponential decay functions - LIMITED to MAX: 4): |
47 | | -__numberOfExpDec = 2 |
48 | 46 |
|
49 | 47 | #channel/bin resolution [ps] |
50 | 48 | __channelResolutionInPs = 5.0 |
51 | 49 |
|
52 | | -#expected lifetimes (tau) -> start values in [ps] (required for the levenberg marquardt fit) |
| 50 | +#binning factor: |
| 51 | +__binningFactor = 1; |
| 52 | + |
| 53 | +#expected number of components (number of exponential decay functions - LIMITED to MAX: 4): |
| 54 | +__numberOfExpDec = 2 |
| 55 | + |
| 56 | +#expected lifetimes (tau) -> start values in [ps] (required for the levenberg marquardt fit using lmfit library) |
53 | 57 | #note: only the first '__numberOfExpDec' related values are considered (e.g.: for __numberOfExpDec = 2 --> __expectedTau_1_in_ps AND __expectedTau_2_in_ps) |
54 | | -__expectedTau_1_in_ps = 260.0; |
55 | | -__expectedTau_2_in_ps = 1500.0; |
56 | | -__expectedTau_3_in_ps = 160.0; |
| 58 | +__expectedTau_1_in_ps = 240.0; |
| 59 | +__expectedTau_2_in_ps = 1200.0; |
| 60 | +__expectedTau_3_in_ps = 2800.0; |
57 | 61 | __expectedTau_4_in_ps = 160.0; |
58 | 62 |
|
59 | | -#background calculation (right side of spectrum data): |
| 63 | +#background estimation (right side of spectrum data): |
60 | 64 | __bkgrd_startIndex = 8000; |
61 | | -__bkgrd_count = 1500; |
| 65 | +__bkgrd_count = 999; |
| 66 | + |
| 67 | +#fixed background? (value of estimated background is used) |
| 68 | +__bkgrdFixed = False; |
| 69 | + |
62 | 70 |
|
63 | 71 | #NOTE: Spectrum and IRF data vectors require equal length!!! |
64 | 72 |
|
65 | 73 | #file path which contains the SPECTRUM data: |
66 | | -__filePathSpec = 'testData/spectrum2_5ps.dat' |
| 74 | +__filePathSpec = 'testData/spectrum_5ps.dat' |
67 | 75 | __specDataDelimiter = '\t' |
68 | 76 |
|
69 | 77 | #file path which contains the IRF data: |
70 | | -__filePathIRF = 'testData/irf2_5ps.dat' |
| 78 | +__filePathIRF = 'testData/irf_5ps.dat' |
71 | 79 | __irfDataDelimiter = '\t' |
72 | 80 |
|
| 81 | +#define the number of rows which should be skipped during the import: |
| 82 | +__skipRows = 0; |
73 | 83 |
|
74 | 84 | #using model function for IRF? |
75 | | -__bUsingModel = True |
| 85 | +__bUsingModel = False |
76 | 86 |
|
77 | | -#fit weighting: y variance? w = 1/sqrt(y) |
| 87 | +#fit weighting: y variance? w = 1/sqrt(y) <--- <poisson noise> otherwise the weighting is equally distributed: w = 1 |
78 | 88 | __bUsingYVarAsWeighting = True |
79 | 89 |
|
80 | | -#if using model function? choose type of model (also defined in DReconvolutionModel.py): |
| 90 | +#if using model function? choose type of model (defined in DReconvolutionModel.py): |
81 | 91 | #------------------ |
82 | 92 | #Gaussian = 1 |
83 | 93 | #Lorentz_Cauchy = 2 |
84 | 94 | #Pseudovoigt1 = 3 |
85 | 95 | #Pearson7 = 4 |
86 | 96 | #------------------ |
87 | | -__modelType = reconvModel.Gaussian |
| 97 | +__modelType = reconvModel.Pearson7 |
0 commit comments