diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-01-12 15:28:17 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-01-12 15:28:17 +0100 |
commit | 94865648210a69544b049acf54991eba35d92c18 (patch) | |
tree | b343d1e88b1eedf66f0fe1fdfa54360114aaddbf /bin/analyze-log.py | |
parent | 5d6f965c656466b99457fd3fea80183f2e81fa43 (diff) |
add --filter-observations
Diffstat (limited to 'bin/analyze-log.py')
-rwxr-xr-x | bin/analyze-log.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/analyze-log.py b/bin/analyze-log.py index 65f3b44..e3ddef8 100755 --- a/bin/analyze-log.py +++ b/bin/analyze-log.py @@ -62,6 +62,11 @@ def main(): else: args.filter_param = list() + 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 @@ -71,6 +76,7 @@ def main(): dfatool.utils.ignore_param(by_name, parameter_names, args.ignore_param) dfatool.utils.filter_aggregate_by_param(by_name, parameter_names, args.filter_param) + dfatool.utils.filter_aggregate_by_observation(by_name, args.filter_observation) if args.param_shift: param_shift = dfatool.cli.parse_param_shift(args.param_shift) |