From ac5cf2a7df5c75f631fe6f66e5d99d4eac0781cc Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sun, 5 Dec 2021 12:13:25 -0500 Subject: attributes -> tags --- qolab/hardware/scope/sds1104x.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'qolab/hardware/scope/sds1104x.py') diff --git a/qolab/hardware/scope/sds1104x.py b/qolab/hardware/scope/sds1104x.py index 57323e1..d5b109d 100644 --- a/qolab/hardware/scope/sds1104x.py +++ b/qolab/hardware/scope/sds1104x.py @@ -128,8 +128,8 @@ class SDS1104X(ScopeSCPI): VoltsPerDiv = self.getChanVoltsPerDiv(chNum) tr = trRaw tr.values = trRaw.values * VoltsPerDiv * self.vertDivOnScreen/250 -VoltageOffset - tr.attributes['VoltageOffset'] = VoltageOffset - tr.attributes['VoltsPerDiv'] = VoltsPerDiv + tr.tags['VoltageOffset'] = VoltageOffset + tr.tags['VoltsPerDiv'] = VoltsPerDiv return(tr, availableNpnts) def getTimeTrace(self, availableNpnts=None, maxRequiredPoints=None): @@ -145,10 +145,10 @@ class SDS1104X(ScopeSCPI): t = Trace('time') t.values = tval t.unit = 'S' - t.attributes['timePerDiv'] = timePerDiv - t.attributes['trigDelay'] = trigDelay - t.attributes['SampleRate'] = sampleRate - t.attributes['sparsing'] = sparsing + t.tags['timePerDiv'] = timePerDiv + t.tags['trigDelay'] = trigDelay + t.tags['SampleRate'] = sampleRate + t.tags['sparsing'] = sparsing return(t) def getTrace(self, chNum, availableNpnts=None, maxRequiredPoints=None): -- cgit v1.2.3