diff options
Diffstat (limited to 'analysis/scripts/rank_common.py')
| -rw-r--r-- | analysis/scripts/rank_common.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/analysis/scripts/rank_common.py b/analysis/scripts/rank_common.py index b1d5af77..d12dc5bc 100644 --- a/analysis/scripts/rank_common.py +++ b/analysis/scripts/rank_common.py @@ -89,12 +89,27 @@ def warning(msg): def preprocess_data(data, _type): methods = set([m for dset in data.keys() for m in data[dset].keys()]) methods = sorted(methods) + + # filter out rbocpdms on "best" (uni or multi) if _type == "best": warning( "\nWarning: Filtering out RBOCPDMS due to insufficient results.\n" ) methods = [m for m in methods if not m == "rbocpdms"] + # filter out methods that have no results on any dataset + methods_no_result = set() + for m in methods: + if all(data[d][m] is None for d in data): + methods_no_result.add(m) + if methods_no_result: + print( + "\nWarning: Filtering out %r due to no results on any series\n" + % methods_no_result, + file=sys.stderr, + ) + methods = [m for m in methods if not m in methods_no_result] + data_w_methods = {} for dset in data: data_w_methods[dset] = {} |
