Skip to content
Snippets Groups Projects
Commit 62093e04 authored by Christian Marius Lillelund's avatar Christian Marius Lillelund
Browse files

improved readability

parent ec99f3f1
No related branches found
No related tags found
No related merge requests found
Pipeline #87505 failed
......@@ -114,8 +114,9 @@ def accumulate_screenings(df: pd.DataFrame, settings: dict) -> pd.DataFrame:
df.loc[row_week[0], 'GotAlarmInSession'] = 1
else:
df.loc[row_week[0], 'GotAlarmInSession'] = 0
if cumsum_weeks >= settings['threshold_weeks']
and cumsum_training >= settings['threshold_training']:
cond_weeks = cumsum_weeks >= settings['threshold_weeks']
cond_training = cumsum_training >= settings['threshold_training']
if cond_weeks and cond_training:
cumsum_weeks = 0
cumsum_training = 0
number_session += 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment