From 1e29075c9f625947a82c86d7304ed20eb6f06e64 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 11 Mar 2024 14:08:21 +0100 Subject: Move Logfile and CSVfile from utils to a new loader class --- lib/loader/__init__.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'lib/loader/__init__.py') diff --git a/lib/loader/__init__.py b/lib/loader/__init__.py index caa2212..9dc83e3 100644 --- a/lib/loader/__init__.py +++ b/lib/loader/__init__.py @@ -20,6 +20,7 @@ from .energytrace import ( EnergyTraceWithTimer, ) from .keysight import DLog, KeysightCSV +from .plain import Logfile, CSVfile from .mimosa import MIMOSA logger = logging.getLogger(__name__) @@ -667,9 +668,9 @@ class RawData: "offline_aggregates", None ) if offline_aggregates: - state_or_transition[ - "online_aggregates" - ] = offline_aggregates + state_or_transition["online_aggregates"] = ( + offline_aggregates + ) for j, traces in enumerate(ptalog["traces"]): self.filenames.append("{}#{}".format(filename, j)) @@ -736,9 +737,9 @@ class RawData: "offline_aggregates", None ) if offline_aggregates: - state_or_transition[ - "online_aggregates" - ] = offline_aggregates + state_or_transition["online_aggregates"] = ( + offline_aggregates + ) for j, traces in enumerate(ptalog["traces"]): self.filenames.append("{}#{}".format(filename, j)) self.traces_by_fileno.append(traces) -- cgit v1.2.3