From 6891039832399f7a358f9b0e135db3c1862181fc Mon Sep 17 00:00:00 2001 From: Simon Brugman Date: Tue, 28 Jun 2022 15:47:05 +0200 Subject: [PATCH] fix(config): backwards compatibility --- popmon/pipeline/metrics_pipelines.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/popmon/pipeline/metrics_pipelines.py b/popmon/pipeline/metrics_pipelines.py index 9d2b0f01..7cba9fc9 100644 --- a/popmon/pipeline/metrics_pipelines.py +++ b/popmon/pipeline/metrics_pipelines.py @@ -240,7 +240,7 @@ def __init__( suffix_mean="_mean", suffix_std="_std", suffix_pull="_pull", - metrics=[f"{reference_prefix}_{key}" for key in Comparisons.get_keys()], + metrics=[f"{reference_prefix}_{key}" for key in Comparisons.get_keys() if key in ['max_prob_diff', 'psi', 'jsd']], ), # 4. profiling of histograms, then pull calculation compared with reference mean and std, # to obtain normalized residuals of profiles @@ -303,7 +303,7 @@ def __init__( suffix_mean="_mean", suffix_std="_std", suffix_pull="_pull", - metrics=[f"{reference_prefix}_{key}" for key in Comparisons.get_keys()], + metrics=[f"{reference_prefix}_{key}" for key in Comparisons.get_keys() if key in ['max_prob_diff', 'psi', 'jsd']], ), # 4. pull calculation compared with reference mean and std, to obtain normalized residuals of profiles ReferencePullCalculator( @@ -357,7 +357,7 @@ def __init__( suffix_mean="_mean", suffix_std="_std", suffix_pull="_pull", - metrics=[f"{reference_prefix}_{key}" for key in Comparisons.get_keys()], + metrics=[f"{reference_prefix}_{key}" for key in Comparisons.get_keys() if key in ['max_prob_diff', 'psi', 'jsd']], ), # 4. profiling of histograms, then pull calculation compared with reference mean and std, # to obtain normalized residuals of profiles @@ -415,7 +415,7 @@ def __init__( suffix_mean="_mean", suffix_std="_std", suffix_pull="_pull", - metrics=[f"{reference_prefix}_{key}" for key in Comparisons.get_keys()], + metrics=[f"{reference_prefix}_{key}" for key in Comparisons.get_keys() if key in ['max_prob_diff', 'psi', 'jsd']], ), ExpandingPullCalculator( read_key="profiles",