From 1d13c236aeaa408a7a165379749f4e015b7e287b Mon Sep 17 00:00:00 2001 From: Andrej Fast Date: Thu, 7 Mar 2024 14:16:04 +0100 Subject: [PATCH 1/2] fixed wrong score for two cf-checks which resulted in appearance of warnings even if there is nothing to warn --- compliance_checker/cf/cf_1_6.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compliance_checker/cf/cf_1_6.py b/compliance_checker/cf/cf_1_6.py index dd571c07..cc9b544f 100644 --- a/compliance_checker/cf/cf_1_6.py +++ b/compliance_checker/cf/cf_1_6.py @@ -425,7 +425,7 @@ def check_fill_value_equal_missing_value(self, ds): return Result( BaseCheck.MEDIUM, - (len(fails), total), + (total - len(fails), total), self.section_titles["2.5"], msgs=fails, ) @@ -455,7 +455,7 @@ def check_valid_range_or_valid_min_max_present(self, ds): return Result( BaseCheck.MEDIUM, - (len(fails), total), + (total - len(fails), total), self.section_titles["2.5"], msgs=fails, ) From 9f98bc69beba5f93f7613d23341f37598815500b Mon Sep 17 00:00:00 2001 From: Andrej Fast Date: Thu, 7 Mar 2024 14:16:28 +0100 Subject: [PATCH 2/2] removed a very verbose debug print statement which resulted in a flooded CLI --- compliance_checker/cf/cf_1_7.py | 1 - 1 file changed, 1 deletion(-) diff --git a/compliance_checker/cf/cf_1_7.py b/compliance_checker/cf/cf_1_7.py index e47ca240..c8718e1a 100644 --- a/compliance_checker/cf/cf_1_7.py +++ b/compliance_checker/cf/cf_1_7.py @@ -396,7 +396,6 @@ def check_cell_boundaries_interval(self, ds): reasoning, ) ret_val.append(result) - print(ret_val) return ret_val def check_cell_measures(self, ds):