aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-21 14:49:14 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-21 14:49:14 -0400
commit106c7019fb518494428f29c7761d2c52c9150771 (patch)
tree45b6f0aa497055efc3e875a64466030df744a981
parent9ac4d611b63fc23d967909f68ae0db0a4632bf15 (diff)
downloadqolab-106c7019fb518494428f29c7761d2c52c9150771.tar.gz
qolab-106c7019fb518494428f29c7761d2c52c9150771.zip
protection about negative numbers in byte storage
-rw-r--r--qolab/hardware/scope/rigolds1054z.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qolab/hardware/scope/rigolds1054z.py b/qolab/hardware/scope/rigolds1054z.py
index 22a2da2..9a73e7a 100644
--- a/qolab/hardware/scope/rigolds1054z.py
+++ b/qolab/hardware/scope/rigolds1054z.py
@@ -411,7 +411,7 @@ class RigolDS1054z(ScopeSCPI):
VoltsPerDiv = self.getChanVoltsPerDiv(chNum)
tr = trRaw
tr.values = (
- trRaw.values - rawChanCfg["yreference"] - rawChanCfg["yorigin"]
+ np.array(trRaw.values, dtype=int) - rawChanCfg["yreference"] - rawChanCfg["yorigin"]
) * rawChanCfg["yincrement"]
tr.config["unit"] = "Volt"