diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-03-09 14:41:30 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-03-09 14:41:30 -0500 |
commit | a9289ece6923f4863d48c86299aac32e647caedc (patch) | |
tree | 92a6ff87063e1bf874e664a02db7961ee22b1686 /qolab/hardware/scope/__init__.py | |
parent | b2a65836ab6f33299bcfb17bbacc325382050209 (diff) | |
download | qolab-a9289ece6923f4863d48c86299aac32e647caedc.tar.gz qolab-a9289ece6923f4863d48c86299aac32e647caedc.zip |
scope uses getConfig from base instrument, since it has channel config capability
Diffstat (limited to 'qolab/hardware/scope/__init__.py')
-rw-r--r-- | qolab/hardware/scope/__init__.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/qolab/hardware/scope/__init__.py b/qolab/hardware/scope/__init__.py index 3c0889f..debe668 100644 --- a/qolab/hardware/scope/__init__.py +++ b/qolab/hardware/scope/__init__.py @@ -59,22 +59,6 @@ class Scope(BasicInstrument): allTraces=self.getAllTraces(**kwargs) allTraces.plot() - def getConfig(self): - config = BasicInstrument.getConfig(self).copy() - chconfig = {} - for chNum in range(1, self.numberOfChannels+1): - chNconfig = {} - for p in self.channelProperties: - getter = f'getChan{p}' - if not hasattr(self, getter): - print(f'warning no getter for {p}, i.e. {getter} is missing') - continue - res = getattr(self, getter)(chNum) - chNconfig[p] = res - chconfig[chNum] = chNconfig - config['ChannelsConfig']=chconfig - return config - def save(self, fname=None, item_format='e', availableNpnts=None, maxRequiredPoints=None, decimate=True, extention='dat'): allTraces = self.getAllTraces(availableNpnts=availableNpnts, maxRequiredPoints=maxRequiredPoints, decimate=decimate) allTraces.config['item_format']=item_format |