From 106c7019fb518494428f29c7761d2c52c9150771 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sun, 21 Jul 2024 14:49:14 -0400 Subject: protection about negative numbers in byte storage --- qolab/hardware/scope/rigolds1054z.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qolab/hardware/scope') 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" -- cgit v1.2.3