Skip to content

Commit bfe5973

Browse files
committed
Merge branch 'develop' into handle-invalid-time-value-set
2 parents ebfeb43 + fded05a commit bfe5973

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/explorepy/explore.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from scipy import signal as scipy_signal
2525

2626
import explorepy
27+
from explorepy._exceptions import ImpedanceModeActiveError
2728
from explorepy.command import (
2829
MemoryFormat,
2930
SetBinaryTime,
@@ -752,7 +753,10 @@ def get_channel_mask(self):
752753
return SettingsManager(self.device_name).get_adc_mask()
753754

754755
def is_asr_processor_available(self):
755-
return self.stream_processor.ensure_asr_processor_available()
756+
try:
757+
return self.stream_processor.ensure_asr_processor_available()
758+
except ImpedanceModeActiveError:
759+
return False
756760

757761
def calibrate_asr(self, length=-1.0):
758762
if self.is_asr_processor_available():
@@ -777,11 +781,8 @@ def is_asr_running(self):
777781
return False
778782

779783
def start_asr(self, window=None):
780-
print("Starting asr")
781784
if self.is_asr_processor_available():
782-
print("ASR processor is available")
783785
if self.stream_processor.asr_processor.calibration_data_available:
784-
print("calibration data is available")
785786
self.stream_processor.asr_processor.start_cleaning(window)
786787

787788
def stop_asr(self):

0 commit comments

Comments
 (0)