Skip to content

Commit 9d57833

Browse files
committed
fallback to default notch on failure, set cutoff freq for imp
1 parent 1324d2c commit 9d57833

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/explorepy/stream_processor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def imp_initialize(self, notch_freq, calibration=False):
462462
self._add_notch_filter()
463463
self.imp_calculator = ImpedanceMeasurement(device_info=self.device_info,
464464
calib_param=self.imp_calib_info,
465-
notch_freq=self.get_power_line_freq())
465+
notch_freq=self.get_power_line_freq() or notch_freq)
466466
self._is_imp_mode = True
467467
else:
468468
raise ConnectionError('Device configuration process failed!')
@@ -593,7 +593,7 @@ def fill_missing_packet(self, packet):
593593

594594
def _add_notch_filter(self):
595595
self._notch_filter = ExGFilter(
596-
cutoff_freq=(61, 64),
596+
cutoff_freq=62.5,
597597
filter_type='notch_imp',
598598
s_rate=250,
599599
n_chan=SettingsManager(self.device_info['device_name']).get_channel_count()

0 commit comments

Comments
 (0)