Commit e96b2fb1 authored by JOSSOUD Olivier's avatar JOSSOUD Olivier
Browse files

Encoder. Increase minimum number of line to detect end_of_melting.

parent 79de0f9c
Pipeline #167224 passed with stages
in 1 minute and 9 seconds
......@@ -81,7 +81,7 @@ def get_moveup_events(encoder_df: pd.DataFrame,
start_datetime = encoder_df.index[encoder_df.index.get_loc(start_datetime) - 1]
start_position = encoder_df.loc[start_datetime]["position"]
if len(in_range_df.index) == 0:
if len(in_range_df.index) < 5:
event_type = "end_of_melting"
end_datetime = None
end_position = None
......
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