From fdcb182c04827c5e2470df949ac37941e0e4718c Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sun, 14 Jul 2024 02:01:45 -0400 Subject: diambigued l --- qolab/data/trace.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qolab/data/trace.py') 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) -- cgit v1.2.3