mirror of https://gitlab.com/pamhyr/pamhyr2
Results: Fix results export.
parent
3e085dd7c6
commit
36b62260b1
|
|
@ -614,12 +614,11 @@ class ResultsWindow(PamhyrWindow):
|
||||||
quotechar='|', quoting=csv.QUOTE_MINIMAL)
|
quotechar='|', quoting=csv.QUOTE_MINIMAL)
|
||||||
|
|
||||||
writer.writerow(["timestamp", "z", "q"])
|
writer.writerow(["timestamp", "z", "q"])
|
||||||
for profile in reach.profiles:
|
timestamps = sorted(self._results.get("timestamps"))
|
||||||
timestamps = self._results.get("timestamps")
|
|
||||||
|
|
||||||
for ts in timestamps:
|
for ts in timestamps:
|
||||||
writer.writerow([
|
writer.writerow([
|
||||||
ts,
|
ts,
|
||||||
profile.get_ts_key(ts, "Z"),
|
profile.get_ts_key(ts, "Z"),
|
||||||
profile.get_ts_key(ts, "Q"),
|
profile.get_ts_key(ts, "Q"),
|
||||||
])
|
])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue