diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-21 14:49:14 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-21 14:49:14 -0400 |
commit | 106c7019fb518494428f29c7761d2c52c9150771 (patch) | |
tree | 45b6f0aa497055efc3e875a64466030df744a981 /qolab | |
parent | 9ac4d611b63fc23d967909f68ae0db0a4632bf15 (diff) | |
download | qolab-106c7019fb518494428f29c7761d2c52c9150771.tar.gz qolab-106c7019fb518494428f29c7761d2c52c9150771.zip |
protection about negative numbers in byte storage
Diffstat (limited to 'qolab')
-rw-r--r-- | qolab/hardware/scope/rigolds1054z.py | 2 |
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" |