File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424from scipy import signal as scipy_signal
2525
2626import explorepy
27+ from explorepy ._exceptions import ImpedanceModeActiveError
2728from 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 ):
You can’t perform that action at this time.
0 commit comments