|
25 | 25 | DEFAULT_TRIM_END_TIME_SEC = 150.0 |
26 | 26 | DEFAULT_ROTATION_TYPE = 'zrt' # from ['zrt', 'lqt'] |
27 | 27 | DEFAULT_DECONV_DOMAIN = 'time' # from ['time', 'freq', 'iter'] |
28 | | -DEFAULT_GAUSS_WIDTH = 1.0 |
| 28 | +DEFAULT_GAUSS_WIDTH = 1.0 # for frequency domain |
| 29 | +DEFAULT_ITER_GWIDTH_FACTOR = 2.5 # gaussian pulse-width factor for iterative deconvolution |
29 | 30 | DEFAULT_WATER_LEVEL = 0.01 |
30 | 31 | DEFAULT_SPIKING = 0.5 |
31 | 32 | DEFAULT_NORMALIZE = False |
@@ -66,6 +67,7 @@ def __init__(self, config_source: Union[str, dict]): |
66 | 67 | "gauss_width": float # Gaussian freq domain filter width. Only required for freq-domain deconvolution |
67 | 68 | "water_level": float # Water-level for freq domain spectrum. Only required for freq-domain deconvolution |
68 | 69 | "spiking": float # Spiking factor (noise suppression), only required for time-domain deconvolution |
| 70 | + "iter_gwidth_factor": float # Gaussian pulse-width factor, required only for iterative deconvolution |
69 | 71 | "normalize": bool # Whether to normalize RF amplitude |
70 | 72 | } |
71 | 73 |
|
@@ -103,6 +105,7 @@ def __init__(self, config_source: Union[str, dict]): |
103 | 105 | "gauss_width": DEFAULT_GAUSS_WIDTH, |
104 | 106 | "water_level": DEFAULT_WATER_LEVEL, |
105 | 107 | "spiking": DEFAULT_SPIKING, |
| 108 | + "iter_gwidth_factor": DEFAULT_ITER_GWIDTH_FACTOR, |
106 | 109 | "normalize": DEFAULT_NORMALIZE, |
107 | 110 | }, |
108 | 111 |
|
@@ -179,7 +182,7 @@ def _validate(self): |
179 | 182 | # validate <processing> block |
180 | 183 | cp_keys = {'rf_type', 'custom_preproc', 'trim_start_time', 'trim_end_time', |
181 | 184 | 'rotation_type', 'deconv_domain', 'gauss_width', 'water_level', |
182 | | - 'spiking', 'normalize'} |
| 185 | + 'spiking', 'iter_gwidth_factor', 'normalize'} |
183 | 186 | if(not set(self.config_processing.keys()).issubset(cp_keys)): |
184 | 187 | raise ValueError('Invalid key(s) found in <processing> block in the config file. ' |
185 | 188 | 'Valid keys are: {}'.format(cp_keys)) |
|
0 commit comments