aboutsummaryrefslogtreecommitdiff
path: root/qolab
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-21 00:29:40 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-21 00:29:40 -0400
commitbc6707e1b4f21fada8dfc26955ad31f75bee31d3 (patch)
tree4be29aa436df89da2bec655144a14c7b489a6106 /qolab
parent5b15dc47afad4d45fba7a0b23a3fdf7a8b27a74f (diff)
downloadqolab-bc6707e1b4f21fada8dfc26955ad31f75bee31d3.tar.gz
qolab-bc6707e1b4f21fada8dfc26955ad31f75bee31d3.zip
black format
Diffstat (limited to 'qolab')
-rw-r--r--qolab/hardware/scope/rigolds1054z.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/qolab/hardware/scope/rigolds1054z.py b/qolab/hardware/scope/rigolds1054z.py
index e4ed65d..6ac51c5 100644
--- a/qolab/hardware/scope/rigolds1054z.py
+++ b/qolab/hardware/scope/rigolds1054z.py
@@ -276,11 +276,13 @@ class RigolDS1054z(ScopeSCPI):
# sampleRate = self.getSampleRate()
timePerDiv = self.getTimePerDiv()
# trigDelay = self.getTrigDelay()
- availableNpnts = rawChanCfg['availableNpnts']
- sparsing = rawChanCfg['sparsing']
- Npnts = rawChanCfg['Npnts']
- ind = np.linspace(0, Npnts-1, Npnts)
- tval = (ind - rawChanCfg['xreference'] ) * rawChanCfg['xincrement']*sparsing - rawChanCfg['xorigin']
+ availableNpnts = rawChanCfg["availableNpnts"]
+ sparsing = rawChanCfg["sparsing"]
+ Npnts = rawChanCfg["Npnts"]
+ ind = np.linspace(0, Npnts - 1, Npnts)
+ tval = (ind - rawChanCfg["xreference"]) * rawChanCfg[
+ "xincrement"
+ ] * sparsing - rawChanCfg["xorigin"]
t = Trace("time")
t.values = tval.reshape(tval.size, 1)
t.config["unit"] = "S"
@@ -309,8 +311,10 @@ class RigolDS1054z(ScopeSCPI):
VoltageOffset = self.getChanVoltageOffset(chNum)
VoltsPerDiv = self.getChanVoltsPerDiv(chNum)
tr = trRaw
- tr.values = (trRaw.values - rawChanCfg['yreference'] - rawChanCfg['yorigin']) * rawChanCfg['yincrement']
-
+ tr.values = (
+ trRaw.values - rawChanCfg["yreference"] - rawChanCfg["yorigin"]
+ ) * rawChanCfg["yincrement"]
+
tr.config["unit"] = "Volt"
tr.config["tags"]["VoltageOffset"] = VoltageOffset
tr.config["tags"]["VoltsPerDiv"] = VoltsPerDiv