jsPsych.randomization.shuffleNoRepeats outputs something incorrect #2807
-
Hello, This is a follow-up to issue #2802. In that prior issue, the application was hanging because there was no permutation of trials that could satisfy all 4 constraints that I had placed on I looked at the documentation for Thank you for any help you may be able to provide!
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I just wrote a test case for this and can confirm something is buggy here. I think it has to do with the fact that the array items are objects and we hadn't tested on that before. I am working on a fix and will let you know what I figure out. |
Beta Was this translation helpful? Give feedback.
-
Hi again @Oriane4972, There was indeed a bug in the Thanks for bringing this to our attention! |
Beta Was this translation helpful? Give feedback.
Hi again @Oriane4972,
There was indeed a bug in the
shuffleNoRepeats
function in the case where theequalityFunction
used a logical OR to check for equality. I've patched this with #2811, and it will be fixed when we publish v7.3.1 shortly.Thanks for bringing this to our attention!