aboutsummaryrefslogtreecommitdiff
path: root/qolab
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-14 02:01:45 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-14 02:02:18 -0400
commitfdcb182c04827c5e2470df949ac37941e0e4718c (patch)
treeea5d7e7f17e9f7b9732ff963215d1fc52f4e2e4d /qolab
parentca236ed0a7440c2c4336e93b62058c8a07a0f06a (diff)
downloadqolab-fdcb182c04827c5e2470df949ac37941e0e4718c.tar.gz
qolab-fdcb182c04827c5e2470df949ac37941e0e4718c.zip
diambigued l
Diffstat (limited to 'qolab')
-rw-r--r--qolab/data/trace.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/qolab/data/trace.py b/qolab/data/trace.py
index bce0711..d1fb77d 100644
--- a/qolab/data/trace.py
+++ b/qolab/data/trace.py
@@ -12,7 +12,7 @@ def headerFromDictionary(d, prefix=""):
tail = yaml.dump(d, default_flow_style=False, sort_keys=False)
tail = tail.split("\n")
header.extend(tail)
- prefixed_header = [prefix + l for l in header]
+ prefixed_header = [prefix + line for line in header]
return prefixed_header
@@ -122,11 +122,11 @@ def traceFromHeaderAndData(header, data=None):
tr.addTraceX(tx)
ytrs_header = header["TraceY"]
cnt = 0
- for l, h in ytrs_header.items():
+ for name, h in ytrs_header.items():
ty = traceFromHeaderAndData(h)
cnt += 1
ty.values = data[:, cnt]
- trxy = TraceXY(l)
+ trxy = TraceXY(name)
trxy.x = tx
trxy.y = ty
tr.addTrace(trxy)