diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-01-03 09:54:30 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-01-03 09:54:30 -0500 |
commit | 89f4e35cfbeb7bd87389c5f4271469de3518e80e (patch) | |
tree | 9c99f33758cb8094b6c6781a31eeff3a8ebcb127 | |
parent | 83a8bc275d0b46ee9ea9da6b3ad24dece6baab05 (diff) | |
download | qolab-89f4e35cfbeb7bd87389c5f4271469de3518e80e.tar.gz qolab-89f4e35cfbeb7bd87389c5f4271469de3518e80e.zip |
proper exception
-rw-r--r-- | qolab/hardware/scope/__init__.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/qolab/hardware/scope/__init__.py b/qolab/hardware/scope/__init__.py index ff3eb18..9797efe 100644 --- a/qolab/hardware/scope/__init__.py +++ b/qolab/hardware/scope/__init__.py @@ -30,19 +30,18 @@ class Scope(BasicInstrument): # but might be faster if parameters provided: less IO requests # old_trg_mode = self.getTriggerMode() # self.setTriggerMode('STOP'); # to get synchronous channels - warnings.warn( 'this function is not implemented' ) + raise NotImplementedError( 'getTrace function is not implemented' ) # if old_trg_mode != "STOP": # short speed up here with this check # self.setTriggerMode(old_trg_mode) def getTriggerMode(self): # we expect NORM, AUTO, SINGLE, STOP - warnings.warn( 'this function is not implemented' ) + raise NotImplementedError( 'getTriggerMode function is not implemented' ) def setTriggerMode(self, mode): # we expect NORM, AUTO, SINGLE, STOP - warnings.warn( 'this function is not implemented' ) - + raise NotImplementedError( 'setTriggerMode function is not implemented' ) def getAllTraces(self, availableNpnts=None, maxRequiredPoints=None, decimate=True): allTraces=TraceSetSameX('scope traces') |