Account for missing baseline data.
parent
ed5314aa98
commit
144f0d0dcf
|
@ -136,9 +136,12 @@ if not participant_info.empty:
|
||||||
].sum()
|
].sum()
|
||||||
|
|
||||||
if "limesurvey_demand_control_ratio" in requested_features:
|
if "limesurvey_demand_control_ratio" in requested_features:
|
||||||
limesurvey_demand_control_ratio = (
|
if limesurvey_control["score"].sum():
|
||||||
limesurvey_demand["score"].sum() / limesurvey_control["score"].sum()
|
limesurvey_demand_control_ratio = (
|
||||||
)
|
limesurvey_demand["score"].sum() / limesurvey_control["score"].sum()
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
limesurvey_demand_control_ratio = 0
|
||||||
if (
|
if (
|
||||||
JCQ_NORMS[participant_info.loc[0, "gender"]][0]
|
JCQ_NORMS[participant_info.loc[0, "gender"]][0]
|
||||||
<= limesurvey_demand_control_ratio
|
<= limesurvey_demand_control_ratio
|
||||||
|
|
Loading…
Reference in New Issue