From 89f4e35cfbeb7bd87389c5f4271469de3518e80e Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Mon, 3 Jan 2022 09:54:30 -0500 Subject: proper exception --- qolab/hardware/scope/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'qolab') 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') -- cgit v1.2.3