summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-07-22 09:43:23 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-07-22 09:43:23 +0200
commit45881265830d53f92f410d8fe1ab530082ca873c (patch)
treeda3f31b6d1167ce8f5f2f5d2158969e0cd103a7a
parent166cda695eb9cf6aa981b8bbd292fa9eb06fecf2 (diff)
analyze-log: allow ignoring parameters after filtering on them
-rwxr-xr-xbin/analyze-log.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/analyze-log.py b/bin/analyze-log.py
index 160ffc3..1978df0 100755
--- a/bin/analyze-log.py
+++ b/bin/analyze-log.py
@@ -65,18 +65,17 @@ def main():
style="{",
)
- if args.filter_observation:
- args.filter_observation = list(
- map(lambda x: tuple(x.split(":")), args.filter_observation.split(","))
- )
-
observations = reduce(lambda a, b: a + b, map(parse_logfile, args.logfiles))
by_name, parameter_names = dfatool.utils.observations_to_by_name(observations)
del observations
if args.ignore_param:
args.ignore_param = args.ignore_param.split(",")
- dfatool.utils.ignore_param(by_name, parameter_names, args.ignore_param)
+
+ if args.filter_observation:
+ args.filter_observation = list(
+ map(lambda x: tuple(x.split(":")), args.filter_observation.split(","))
+ )
if args.filter_param:
args.filter_param = list(
@@ -92,6 +91,7 @@ def main():
dfatool.utils.filter_aggregate_by_param(by_name, parameter_names, args.filter_param)
dfatool.utils.filter_aggregate_by_observation(by_name, args.filter_observation)
+ dfatool.utils.ignore_param(by_name, parameter_names, args.ignore_param)
if args.param_shift:
param_shift = dfatool.cli.parse_param_shift(args.param_shift)