Skip to content

Commit

Permalink
remove default config from code (only use the config file)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Nov 12, 2024
1 parent f1234dc commit 7bb0cd5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/depiction_targeted_preproc/panel/standardize_input_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit 7bb0cd5

Please sign in to comment.