Commit 0842301e authored by Jan Kiene's avatar Jan Kiene
Browse files

get thresholds from env vars for easier adjustment in ci setup

parent 2677852c
Loading
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -33,15 +33,16 @@
import pandas as pd
import argparse
import sys
import os
import pathlib


# set positive threshold for "lower is better" metrics, negative for "higher is better"
COLS_2_THRESHOLDS = {
    "MLD": 0.1,
    "MAXIMUM ABS DIFF": 5,
    "MIN_SSNR": -1,
    "MIN_ODG": -0.05,
    "MLD": os.environ.get("CI_REGRESSION_THRESH_MLD", 0.1),
    "MAXIMUM ABS DIFF": os.environ.get("CI_REGRESSION_THRESH_MAX_ABS_DIFF", 5),
    "MIN_SSNR": os.environ.get("CI_REGRESSION_THRESH_SSNR", -1),
    "MIN_ODG": os.environ.get("CI_REGRESSION_THRESH_ODG", -0.05),
}