Skip to content

Commit 6539616

Browse files
author
Nicolas Legrand
authored
Update task.py
Fix randomization in the trial function
1 parent c119e79 commit 6539616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cardioception/HRD/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ def trial(
541541
parameters["triggers"]["listeningStart"] # Send triggers
542542

543543
# Random selection of HR frequency
544-
listenBPM = parameters["referenceTone"]
544+
listenBPM = np.random.choice(np.arange(40, 100, 0.5))
545545

546546
# Play the corresponding beat file
547547
listenFile = pkg_resources.resource_filename(

0 commit comments

Comments
 (0)