From 2aaab1316d176950df7b8679c6fc1ffa32fc9cf7 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sun, 21 Jul 2024 00:32:27 -0400 Subject: nice line format --- qolab/hardware/scope/rigolds1054z.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qolab/hardware/scope') diff --git a/qolab/hardware/scope/rigolds1054z.py b/qolab/hardware/scope/rigolds1054z.py index 6ac51c5..8706cf1 100644 --- a/qolab/hardware/scope/rigolds1054z.py +++ b/qolab/hardware/scope/rigolds1054z.py @@ -280,9 +280,9 @@ class RigolDS1054z(ScopeSCPI): sparsing = rawChanCfg["sparsing"] Npnts = rawChanCfg["Npnts"] ind = np.linspace(0, Npnts - 1, Npnts) - tval = (ind - rawChanCfg["xreference"]) * rawChanCfg[ - "xincrement" - ] * sparsing - rawChanCfg["xorigin"] + dx = rawChanCfg["xincrement"] + xorig = rawChanCfg["xorigin"] + tval = (ind - rawChanCfg["xreference"]) * dx * sparsing + xorig t = Trace("time") t.values = tval.reshape(tval.size, 1) t.config["unit"] = "S" -- cgit v1.2.3