aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-22 13:57:08 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-22 13:57:08 -0400
commitecbb21c0ffc65a12c7ee875135a95b5c2942b783 (patch)
treed01c4dec0286ddb4715d1b7a0d9ae86225949856 /qolab/hardware
parent9c316bfd705269d3e3b90bcfb7dbfa874dddd683 (diff)
downloadqolab-ecbb21c0ffc65a12c7ee875135a95b5c2942b783.tar.gz
qolab-ecbb21c0ffc65a12c7ee875135a95b5c2942b783.zip
black formatter
Diffstat (limited to 'qolab/hardware')
-rw-r--r--qolab/hardware/scope/rigolds1054z.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/qolab/hardware/scope/rigolds1054z.py b/qolab/hardware/scope/rigolds1054z.py
index bcd351d..094cb00 100644
--- a/qolab/hardware/scope/rigolds1054z.py
+++ b/qolab/hardware/scope/rigolds1054z.py
@@ -413,7 +413,9 @@ class RigolDS1054z(ScopeSCPI):
VoltsPerDiv = self.getChanVoltsPerDiv(chNum)
tr = trRaw
tr.values = (
- np.array(trRaw.values, dtype=int) - rawChanCfg["yreference"] - rawChanCfg["yorigin"]
+ np.array(trRaw.values, dtype=int)
+ - rawChanCfg["yreference"]
+ - rawChanCfg["yorigin"]
) * rawChanCfg["yincrement"]
tr.config["unit"] = "Volt"