From 7bb0cd55bfbb8c180bce1386aa2af5c40d6b7782 Mon Sep 17 00:00:00 2001 From: Leonardo Schwarz Date: Tue, 12 Nov 2024 13:38:24 +0100 Subject: [PATCH] remove default config from code (only use the config file) --- .../panel/standardize_input_panel.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/depiction_targeted_preproc/panel/standardize_input_panel.py b/src/depiction_targeted_preproc/panel/standardize_input_panel.py index 67e6078..3dd2e73 100644 --- a/src/depiction_targeted_preproc/panel/standardize_input_panel.py +++ b/src/depiction_targeted_preproc/panel/standardize_input_panel.py @@ -5,13 +5,9 @@ class StandardizeConfig(BaseModel): """Configuration for the input panel standardization.""" - column_names: dict[str, set[str]] = { - "mass": {"m/z", "mass", "pc-mt (m+h)+"}, - "label": {"marker", "label"}, - "type": {"type"}, - } - select_columns: list[str] = ["mass", "label", "type"] - default_values: dict[str, str] = {"type": "target"} + column_names: dict[str, set[str]] + select_columns: list[str] + default_values: dict[str, str] def _identify_column_correspondence(config: StandardizeConfig, raw_df: pl.DataFrame) -> dict[str, str]: