You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docstring bug: data consistency check (count_trials) #107
if (s==0ors==1) and (rp==0orrp==1) and (rt>=1andrt<=nRatings):
tempstim.append(s)
tempresp.append(rp)
tempratg.append(rt)
stimuli=tempstim
responses=tempresp
confidence=tempratg
docstring should be changed to:
All trials where stimuli is not 0 or 1, responsesis not 0 or 1, or confidence is not in the range [1, nRatings], are automatically omitted.
Thanks for the report! The docstring was corrected as part of #106 (merged in #108, released in 0.26.1). The Notes section of count_trials now reads:
All trials where stimuli is not 0 or 1, the response is not 0 or 1, or confidence is not a whole number in the range [1, nRatings], are automatically omitted. When accuracy is provided, trials where accuracy is not 0 or 1 (including missing values) are omitted as well.
This matches the filtering in the implementation: responses (given or inferred from accuracy) are checked, and accuracy is checked as well when it is provided. A follow-up on branch 107-docstring-bug-data-consistency-check-count_trials also makes the "no valid trials" error name the same rules.
Activity
lenarddome commentedon Nov 11, 2026
Thanks for the report! The docstring was corrected as part of #106 (merged in #108, released in 0.26.1). The Notes section of
count_trialsnow reads:This matches the filtering in the implementation: responses (given or inferred from accuracy) are checked, and accuracy is checked as well when it is provided. A follow-up on branch
107-docstring-bug-data-consistency-check-count_trialsalso makes the "no valid trials" error name the same rules.fix(metad): correct bin_ratings docstring, name every rule in count_t…
Merge pull request #109 from DevComPsy/107-docstring-bug-data-consist…