UiL-OTS-labs / jspsych-vislexdec-vp

This respository implements a visual lexical decision with visual prime
GNU General Public License v2.0
0 stars 0 forks source link

Make pseudo randomisation flow more generic #23

Open jcvanelst opened 3 years ago

jcvanelst commented 3 years ago

considering this part in the generic docs, we may want to discuss how to enhance the templates so that the "comment out" approach can be dealt with in a better way.

https://github.com/UiL-OTS-labs/jspsych-uil-template-docs#pseudo-random-vs-true-random-theoretical-and-practical-considerations

maartenuni commented 3 years ago

In jspsych-spr-mw heb ik net voor de volgende oplosing gekozen:

in globals.js:

//RANDOMIZATION

// Whether or not to pseudorandomize the test items
const PSEUDO_RANDOMIZE = true;
// The maximum number of items with a similar itemtype in a row
const MAX_SUCCEEDING_ITEMS_OF_TYPE = 2

in index.html

    if (PSEUDO_RANDOMIZE) {
        let shuffled = uil.randomization.randomizeStimuli(
            test_items,
            max_same_type=MAX_SUCCEEDING_ITEMS_OF_TYPE
        );
        if (shuffled !== null)
            test_items = shuffled;
        else 
            console.error('Unable to shuffle stimuli according constraints.')
    }

Dan moeten we alleen de PSEUDO_RANDOMIZE nog beschrijven in: https://github.com/UiL-OTS-labs/jspsych-uil-template-docs#pseudo-random-vs-true-random-theoretical-and-practical-considerations

jcvanelst commented 3 years ago

yes, ik vind dat ook een nette oplossing. ga ik het graag wel na EDDA in de LD's pas doen, tenzij @irisopgithub daar anders over denkt?

irisopgithub commented 3 years ago

ik vind het prima!