From b705b5efaa2e998585e0fddf7b4a4d501e487798 Mon Sep 17 00:00:00 2001 From: ESapenaVentura Date: Fri, 14 Jul 2023 19:54:28 +0100 Subject: [PATCH] Fixed error in challenge string manipulation - v2.1.3 --- lrgasp_metrics/JSON_templates/write_dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lrgasp_metrics/JSON_templates/write_dataset.py b/lrgasp_metrics/JSON_templates/write_dataset.py index c5e641c..482a7ee 100644 --- a/lrgasp_metrics/JSON_templates/write_dataset.py +++ b/lrgasp_metrics/JSON_templates/write_dataset.py @@ -55,7 +55,7 @@ def metric_to_filename(metric): return metric def main(experiment_path, rdata_path, output_path, challenge): - match = challenge.split("_")[-1].upper() + match = challenge.split("_")[0].upper() # Set the values to pass to write_assessment_dataset contained in experiment metadata experiment = json.load(open(experiment_path, 'r')) community = "OEBC010"