From 6af6a7ed83b249e40b6297d98e251923a1df6942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Fr=C3=B6hlich?= Date: Sun, 1 Dec 2024 21:03:01 +0000 Subject: [PATCH 1/2] fix error message for missing cols in mapping df --- petab/v1/mapping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/petab/v1/mapping.py b/petab/v1/mapping.py index 80c71c68..294b19d6 100644 --- a/petab/v1/mapping.py +++ b/petab/v1/mapping.py @@ -44,7 +44,7 @@ def get_mapping_df( for col in MAPPING_DF_REQUIRED_COLS: if col not in mapping_file.columns: raise KeyError( - f"Mapping table missing mandatory field {PETAB_ENTITY_ID}." + f"Mapping table missing mandatory field {col}." ) lint.assert_no_leading_trailing_whitespace( From a91108f2554a432f0edf8cd458482e2fb9ea35e3 Mon Sep 17 00:00:00 2001 From: dilpath Date: Mon, 2 Dec 2024 00:36:21 +0100 Subject: [PATCH 2/2] ci --- petab/v1/mapping.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/petab/v1/mapping.py b/petab/v1/mapping.py index 294b19d6..6eade50e 100644 --- a/petab/v1/mapping.py +++ b/petab/v1/mapping.py @@ -43,9 +43,7 @@ def get_mapping_df( for col in MAPPING_DF_REQUIRED_COLS: if col not in mapping_file.columns: - raise KeyError( - f"Mapping table missing mandatory field {col}." - ) + raise KeyError(f"Mapping table missing mandatory field {col}.") lint.assert_no_leading_trailing_whitespace( mapping_file.reset_index()[col].values, col