URL of experiment: https://pavlovia.org/rgart/ld_js
Description of the problem: I have target binary sequences constructed to have particular sequential properties. I have had each sequence in a separate file, from which one file is randomly selected per participant and neatly used to sequentially assign the target items per trial. That works well enough online as via python.
Trouble is, there are over 100 such files, and separate ones again for practice and buffer trials. When run online (and given how I’ve translated the python to JS), all of these files get downloaded via the browser, which can take a few minutes. To avoid that, I’ve tried rewriting to have only one file for formal trials, another for practice, etc., with the candidate sequences now each filling a column. These few files download quite quickly. So now I make a random selection of column. But this creates the problem of how to assign this column for trial handling in the same way as previously; when setting this as a separate conditions file. So a column is headed with a number, I randomly select one of these numbers, but now I need to assign that as column as a variable that is then used to set the items trial-by-trial.
I’ve left the script in this state, somewhat broken, in trying to do that. I’m no longer confident that more investigation in going down this route is going to get me out of this problem. Perhaps someone can suggest a more intelligent way of doing this altogether–perhaps identical to the standard (?) way of setting a conditions file by variable, while keeping these candidate files outside of the downloaded resources or otherwise, to avoid the big download?
Thank you for any assistance you can provide.I suppose this question might generalise to questions others might have about selecting a sample of images per P from a large pool, etc…