|
1 | 1 | #************************************************************************************************* |
2 | 2 | #** |
3 | | -#** Copyright (c) 2017, 2018 Danny Petschke. All rights reserved. |
| 3 | +#** DLTReconvolution v1.2 (17.01.2019) |
| 4 | +#** |
| 5 | +#** |
| 6 | +#** Copyright (c) 2017 - 2019 Danny Petschke. All rights reserved. |
4 | 7 | #** |
5 | 8 | #** Redistribution and use in source and binary forms, with or without modification, |
6 | 9 | #** are permitted provided that the following conditions are met: |
|
35 | 38 |
|
36 | 39 | #save output as *.txt file after success? |
37 | 40 | __saveReconvolutionSpectrum = False |
38 | | -__saveReconvolutionSpectrumPath = 'testData/recovolutionSpectrumOutput.txt' |
39 | | -__saveReconvolutionSpectrumResidualPath = 'testData/recovolutionSpectrumResidualsOutput.txt' |
| 41 | +__saveReconvolutionSpectrumPath = 'output/...*txt' |
| 42 | +__saveReconvolutionSpectrumResidualPath = 'output/...*txt' |
40 | 43 |
|
41 | 44 | #!note: IRF output is only saved if the model function is used, meaning--> (__bUsingModel = True) |
42 | 45 | __saveReconvolutionIRF = False |
43 | | -__saveReconvolutionIRFPath = 'testData/recovolutionIRFOutput.txt' |
44 | | -__saveReconvolutionIRFResidualPath = 'testData/recovolutionIRFResidualsOutput.txt' |
| 46 | +__saveReconvolutionIRFPath = 'output/...*txt' |
| 47 | +__saveReconvolutionIRFResidualPath = 'output/...*txt' |
| 48 | + |
45 | 49 |
|
46 | 50 |
|
47 | 51 | #channel/bin resolution [ps] |
|
51 | 55 | __binningFactor = 1; |
52 | 56 |
|
53 | 57 | #expected number of components (number of exponential decay functions - LIMITED to MAX: 4): |
54 | | -__numberOfExpDec = 2 |
| 58 | +__numberOfExpDec = 3 |
55 | 59 |
|
56 | 60 | #expected lifetimes (tau) -> start values in [ps] (required for the levenberg marquardt fit using lmfit library) |
57 | 61 | #note: only the first '__numberOfExpDec' related values are considered (e.g.: for __numberOfExpDec = 2 --> __expectedTau_1_in_ps AND __expectedTau_2_in_ps) |
58 | | -__expectedTau_1_in_ps = 240.0; |
59 | | -__expectedTau_2_in_ps = 1200.0; |
60 | | -__expectedTau_3_in_ps = 2800.0; |
| 62 | +__expectedTau_1_in_ps = 190.0; |
| 63 | +__expectedTau_2_in_ps = 385.0; |
| 64 | +__expectedTau_3_in_ps = 1200.0; |
61 | 65 | __expectedTau_4_in_ps = 160.0; |
62 | 66 |
|
63 | 67 | #background estimation (right side of spectrum data): |
|
68 | 72 | __bkgrdFixed = False; |
69 | 73 |
|
70 | 74 |
|
71 | | -#NOTE: Spectrum and IRF data vectors require equal length!!! |
| 75 | +#NOTE: Spectrum and IRF (or mono-exponential decay spectrum) data vectors require equal length!!! |
| 76 | + |
| 77 | +#define the number of rows which should be skipped during the import: |
| 78 | +__skipRows = 5; |
72 | 79 |
|
73 | 80 | #file path which contains the SPECTRUM data: |
74 | | -__filePathSpec = 'testData/spectrum_5ps.dat' |
| 81 | +__filePathSpec = 'testData/bi207_ref/sn_5ps.dat' |
75 | 82 | __specDataDelimiter = '\t' |
76 | 83 |
|
77 | 84 | #file path which contains the IRF data: |
78 | | -__filePathIRF = 'testData/irf_5ps.dat' |
| 85 | +__filePathIRF = 'path to irf data' |
79 | 86 | __irfDataDelimiter = '\t' |
80 | 87 |
|
81 | | -#define the number of rows which should be skipped during the import: |
82 | | -__skipRows = 0; |
| 88 | + |
| 89 | +#set TRUE if the irf is retrieved from a mono-exponential decay spectrum such as well annealed metals or 207-Bi (in this case, the IRF data will be ignored): |
| 90 | +__bUsingMonoDecaySpecForIRF = True |
| 91 | + |
| 92 | +__tau_monoDecaySpec_in_ps = 182.0 #[ps] 207-Bi |
| 93 | + |
| 94 | +__filePathMonoDecaySpec = 'testData/bi207_ref/bi207_5ps.dat' |
| 95 | +__monoDecaySpecDataDelimiter = '\t' |
| 96 | + |
| 97 | + |
83 | 98 |
|
84 | 99 | #using model function for IRF? |
85 | 100 | __bUsingModel = False |
|
0 commit comments