aboutsummaryrefslogtreecommitdiff
path: root/qolab/data
diff options
context:
space:
mode:
Diffstat (limited to 'qolab/data')
-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)