Commit aa979ed4 authored by Marius Kriegerowski's avatar Marius Kriegerowski
Browse files

snufflings: remove detector deadtime, flake8

parent b79a2036
......@@ -78,9 +78,6 @@ class LassieSnuffling(Snuffling):
self.add_parameter(Param(
'Detector threshold', 'detector_threshold', detector_default, 100.,
10000.))
self.add_parameter(Param(
'Detector deadtime [s]', 'detector_deadtime', 0, 0., 20.,
low_is_none=True))
self.add_parameter(Switch('Level Trace', 'level_trace', False))
self.add_parameter(Switch(
'Hold comparison figure', 'hold_figure', False))
......@@ -112,8 +109,7 @@ class LassieSnuffling(Snuffling):
fallback=True):
for tr_stackmax in traces:
tpeaks, apeaks = tr_stackmax.peaks(
self.detector_threshold, self.tsearch,
deadtime=self.detector_deadtime)
self.detector_threshold, self.tsearch)
if self.level_trace:
ltrace = tr_stackmax.copy(data=False)
......@@ -164,7 +160,7 @@ class LassieSnuffling(Snuffling):
instances.
'''
scan_time = 3.
select_by = 'first'
# select_by = 'first'
if not self.markers_compare:
self.fail('No catalog to compare to')
......@@ -175,7 +171,7 @@ class LassieSnuffling(Snuffling):
detections = copy.deepcopy(self.filter_visible(self.detections))
for i_m, mcompare in enumerate(markers_compare):
detection_times = num.array([d.tmin for d in detections])
i_want = num.where(num.abs(detection_times - mcompare.tmin) \
i_want = num.where(num.abs(detection_times - mcompare.tmin)
< (scan_time / 2.))[0]
if len(i_want) == 0:
not_detected.append(mcompare)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment