|
24 | 24 | from scipy import signal as scipy_signal |
25 | 25 |
|
26 | 26 | import explorepy |
27 | | -from explorepy._exceptions import ImpedanceModeActiveError |
28 | 27 | from explorepy.command import ( |
29 | 28 | MemoryFormat, |
30 | 29 | SetBinaryTime, |
@@ -751,57 +750,3 @@ def is_bt_link_unstable(self): |
751 | 750 |
|
752 | 751 | def get_channel_mask(self): |
753 | 752 | return SettingsManager(self.device_name).get_adc_mask() |
754 | | - |
755 | | - def is_asr_processor_available(self): |
756 | | - try: |
757 | | - return self.stream_processor.ensure_asr_processor_available() |
758 | | - except ImpedanceModeActiveError: |
759 | | - return False |
760 | | - |
761 | | - def calibrate_asr(self, length=-1.0): |
762 | | - if self.is_asr_processor_available(): |
763 | | - self.stream_processor.asr_processor.start_calibration(length) |
764 | | - |
765 | | - def is_asr_calibration_data_available(self): |
766 | | - if self.is_asr_processor_available(): |
767 | | - return self.stream_processor.asr_processor.calibration_data_available |
768 | | - else: |
769 | | - return False |
770 | | - |
771 | | - def is_asr_calibrating(self): |
772 | | - if self.is_asr_processor_available(): |
773 | | - return self.stream_processor.asr_processor.is_calibrating |
774 | | - else: |
775 | | - return False |
776 | | - |
777 | | - def is_asr_running(self): |
778 | | - if self.is_asr_processor_available(): |
779 | | - return self.stream_processor.asr_processor.is_cleaning |
780 | | - else: |
781 | | - return False |
782 | | - |
783 | | - def start_asr(self, window=None): |
784 | | - if self.is_asr_processor_available(): |
785 | | - if self.stream_processor.asr_processor.calibration_data_available: |
786 | | - self.stream_processor.asr_processor.start_cleaning(window) |
787 | | - |
788 | | - def stop_asr(self): |
789 | | - if self.is_asr_processor_available(): |
790 | | - if self.stream_processor.asr_processor.calibration_data_available: |
791 | | - self.stream_processor.asr_processor.stop_cleaning() |
792 | | - |
793 | | - def set_asr_cutoff(self, new_cutoff: float): |
794 | | - if self.is_asr_processor_available(): |
795 | | - self.stream_processor.asr_processor.cutoff = new_cutoff |
796 | | - |
797 | | - def get_asr_cutoff(self): |
798 | | - if self.is_asr_processor_available(): |
799 | | - return self.stream_processor.asr_processor.cutoff |
800 | | - |
801 | | - def set_asr_refresh_window(self, new_window): |
802 | | - if self.is_asr_processor_available(): |
803 | | - self.stream_processor.asr_processor.refresh_window = new_window |
804 | | - |
805 | | - def get_asr_refresh_window(self): |
806 | | - if self.is_asr_processor_available(): |
807 | | - return self.stream_processor.asr_processor.refresh_window |
0 commit comments