summaryrefslogtreecommitdiff
path: root/lib/loader
diff options
context:
space:
mode:
Diffstat (limited to 'lib/loader')
-rw-r--r--lib/loader/__init__.py4
-rw-r--r--lib/loader/energytrace.py4
-rw-r--r--lib/loader/mimosa.py4
3 files changed, 3 insertions, 9 deletions
diff --git a/lib/loader/__init__.py b/lib/loader/__init__.py
index 8ffed03..f0e176d 100644
--- a/lib/loader/__init__.py
+++ b/lib/loader/__init__.py
@@ -24,8 +24,6 @@ from .mimosa import MIMOSA
logger = logging.getLogger(__name__)
-arg_support_enabled = True
-
def _preprocess_mimosa(measurement):
setup = measurement["setup"]
@@ -169,7 +167,7 @@ class TimingData:
paramvalues.append(
soft_cast_int(log_entry["parameter"][paramkey])
)
- if arg_support_enabled and "args" in log_entry:
+ if "args" in log_entry:
paramvalues.extend(map(soft_cast_int, log_entry["args"]))
log_entry["offline_aggregates"]["param"].append(paramvalues)
diff --git a/lib/loader/energytrace.py b/lib/loader/energytrace.py
index b62432c..8fc2d0e 100644
--- a/lib/loader/energytrace.py
+++ b/lib/loader/energytrace.py
@@ -18,8 +18,6 @@ try:
except ImportError:
zbar_available = False
-arg_support_enabled = True
-
def _load_energytrace(data_string):
"""
@@ -131,7 +129,7 @@ class EnergyTrace:
# NB: Unscheduled transitions do not have an 'args' field set.
# However, they should only be caused by interrupts, and
# interrupts don't have args anyways.
- if arg_support_enabled and "args" in online_trace_part:
+ if "args" in online_trace_part:
paramvalues.extend(map(soft_cast_int, online_trace_part["args"]))
if "offline_aggregates" not in online_trace_part:
diff --git a/lib/loader/mimosa.py b/lib/loader/mimosa.py
index 2893e30..48feb66 100644
--- a/lib/loader/mimosa.py
+++ b/lib/loader/mimosa.py
@@ -10,8 +10,6 @@ from dfatool.utils import soft_cast_int
logger = logging.getLogger(__name__)
-arg_support_enabled = True
-
class MIMOSA:
"""
@@ -557,7 +555,7 @@ class MIMOSA:
# NB: Unscheduled transitions do not have an 'args' field set.
# However, they should only be caused by interrupts, and
# interrupts don't have args anyways.
- if arg_support_enabled and "args" in online_trace_part:
+ if "args" in online_trace_part:
paramvalues.extend(map(soft_cast_int, online_trace_part["args"]))
# TODO rename offline_aggregates to make it clear that this is what ends up in by_name / by_param and model.py