Skip to content

Commit 1324d2c

Browse files
committed
disable impedance state change from recorder, remove debug print
1 parent 587539c commit 1324d2c

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/explorepy/explore.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ def handle_impedance_packet(packet):
262262
impedance_values = packet.get_impedances()
263263

264264
real_values = np.array(impedance_values) / 2
265-
print("Impedance:", real_values.tolist())
266265

267266
if file_type == 'csv':
268267
row_data = [float(packet.timestamp), *real_values]
@@ -273,7 +272,6 @@ def handle_impedance_packet(packet):
273272

274273
self.stream_processor.subscribe(callback=handle_exg_impedance_packet, topic=TOPICS.raw_ExG)
275274
self.stream_processor.subscribe(callback=handle_impedance_packet, topic=TOPICS.imp)
276-
self.stream_processor.imp_initialize(notch_freq=notch_freq)
277275
logger.info("Recording with impedance mode...")
278276
else:
279277
self.stream_processor.subscribe(callback=self.recorders['exg'].write_data, topic=TOPICS.raw_ExG)
@@ -303,8 +301,6 @@ def stop_recording(self):
303301

304302
if is_impedance_mode:
305303
try:
306-
self.stream_processor.disable_imp()
307-
308304
if 'handle_exg_impedance_callback' in self.recorders:
309305
self.stream_processor.unsubscribe(
310306
callback=self.recorders['handle_exg_impedance_callback'], topic=TOPICS.raw_ExG)

0 commit comments

Comments
 (0)