EmotionCognitionLab / pvs

1 stars 0 forks source link

handle 0 score case #361

Closed noah10 closed 1 year ago

noah10 commented 1 year ago

Two people (Mara and HepViol, in the lab) have reported doing stage 3 breathing and having their scores stay at 0 for more than 1 minute. The two clear ways this could happen are if (1) we failed to download the participant condition or (2) we did get ibi data but did not get ep data from emwave.

If (1) happens let's set the score to "unknown". If a user reports seeing this we'll know that it was due to a failure to download the condition.

To handle (2) we should treat failure to get ep data the same way we treat failure to get any signal at all - it triggers a timeout that eventually tells the user they'll have to start over.

noah10 commented 1 year ago

Both stage 2 and stage 3 practice seem to work normally, so we'll deploy this and see if it helps with the (very) occasional 0-score issue.