Account for missing baseline data.

models
junos 2022-04-13 14:56:28 +02:00
parent ed5314aa98
commit 144f0d0dcf
1 changed files with 6 additions and 3 deletions

View File

@ -136,9 +136,12 @@ if not participant_info.empty:
].sum()
if "limesurvey_demand_control_ratio" in requested_features:
limesurvey_demand_control_ratio = (
limesurvey_demand["score"].sum() / limesurvey_control["score"].sum()
)
if limesurvey_control["score"].sum():
limesurvey_demand_control_ratio = (
limesurvey_demand["score"].sum() / limesurvey_control["score"].sum()
)
else:
limesurvey_demand_control_ratio = 0
if (
JCQ_NORMS[participant_info.loc[0, "gender"]][0]
<= limesurvey_demand_control_ratio