diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-07-22 09:43:23 +0200 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-07-22 09:43:23 +0200 |
commit | 45881265830d53f92f410d8fe1ab530082ca873c (patch) | |
tree | da3f31b6d1167ce8f5f2f5d2158969e0cd103a7a | |
parent | 166cda695eb9cf6aa981b8bbd292fa9eb06fecf2 (diff) |
analyze-log: allow ignoring parameters after filtering on them
-rwxr-xr-x | bin/analyze-log.py | 12 |
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) |