From a976b021a4c660f327a2843c0b19748005767483 Mon Sep 17 00:00:00 2001 From: Nicolas Schmid <nicolas@breiten.ch> Date: Mon, 15 Apr 2024 17:39:01 +0200 Subject: [PATCH] fix: remove temporary fix to set topflow and toppressure to 0 --- hydws/utils.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hydws/utils.py b/hydws/utils.py index 6e723d3..8f3d575 100644 --- a/hydws/utils.py +++ b/hydws/utils.py @@ -14,12 +14,6 @@ def hydraulics_to_json(df: pd.DataFrame, drop_cols: list[str] = None) -> str: numeric_columns = df.select_dtypes(include='number').columns df[numeric_columns] = df[numeric_columns].fillna(0) - # temporary fix, make sure topflow and toppressure are available - if 'topflow_value' not in df.columns: - df['topflow_value'] = 0 - if 'toppressure_value' not in df.columns: - df['toppressure_value'] = 0 - if 'datetime_value' in df.columns: df = df.sort_values(by='datetime_value') df['datetime_value'] = pd.to_datetime( -- GitLab