Commit 0a93c1e7 authored by JOSSOUD Olivier's avatar JOSSOUD Olivier
Browse files

Flow. Bug correction

parent 995d44b4
Pipeline #172871 failed with stage
in 1 minute and 10 seconds
......@@ -449,7 +449,8 @@ def add_melted_height(arrival_df: pd.DataFrame, encoder_df: pd.DataFrame, iceblo
starting_on_plexi=True)
def _get_melted_height_by_iceblock_(df, suffix: str):
df["melted_height_" + suffix + "_icbk"] = df["melted_height_" + suffix] - df.iloc[0]["melted_height_" + suffix]
first_valid_value = df["melted_height_" + suffix].loc[df["melted_height_" + suffix].first_valid_index()]
df["melted_height_" + suffix + "_icbk"] = df["melted_height_" + suffix] - first_valid_value
return df
# Set initial icbk_code to 0 to avoid removal of the first rows
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment