Skip to content

Commit

Permalink
Function doc clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
mwshinn committed Sep 13, 2024
1 parent 05c8e5f commit 7ed0694
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pyddm/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,12 @@ def prob_error_forced(self):
@requires("len(self.choice_upper) > 0")
@returns(Positive0)
def mean_decision_time(self):
"""The mean decision time in the correct trials."""
"""The mean decision time in the correct trials.
This only works when choice_names is "correct" and "error". The
function mean_rt() includes all trials (not just correct trials) and
thus works for all models.
"""
if self.choice_names != ("correct", "error"):
raise NotImplementedError("Choice names need to be set to \"correct\" and \"error\" to use this function. See the mean_rt method.")
return np.mean(self.choice_upper)
Expand Down

0 comments on commit 7ed0694

Please sign in to comment.