Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup thoughts #6

Open
steffejr opened this issue Mar 8, 2021 · 11 comments
Open

Setup thoughts #6

steffejr opened this issue Mar 8, 2021 · 11 comments

Comments

@steffejr
Copy link
Contributor

steffejr commented Mar 8, 2021

I think each experiment should include two mandatory files which I describe below.

A README.md file for each task should include the following topics:

Experiment Name
-Who wrote it

Background
-About the task and important citations

Task Description

  • What happens during the task

Results File Information

  • What is included in the output file

Experimental Set-up

  • Event-related, block design,

Stimuli

  • What the stimuli are

Modifiable Parameters

  • What parameters are modifiable, i.e. number of trials

A SETUP.JS file
I am using a JS file which contains variables for all of the modifiable text (Welcome, instructions, feedback) and parameters for the experiment. I like this approach because it separates everything someone would change for their own purposes from the code. This file could also be tagged with what language it is in "StroopSetup_EN.js" This would make it easier for others to translate the task for other languages.

@pjkohler
Copy link
Collaborator

pjkohler commented Mar 8, 2021

I think this is great. Why not standardize setup.js and README.md file names, perhaps like: "experimentname_setup_LAN.js" and "experimentname_readme_LAN.js"? I assume we would use ISO-639-3 codes for language?

@jodeleeuw
Copy link
Member

Just a quick note that it is a good idea to leave the README.md file name as README.md because then GitHub will render it as the default view in that folder when you navigate to it.

@pjkohler
Copy link
Collaborator

pjkohler commented Mar 8, 2021

ah, got it. I've updated the instructions to reflect @steffejr's suggestions.

@joshkenney
Copy link

I second the setup file. I have mine labeled conf.js as it functions more like a configuration file.

In our lab, running online and internationally, we have many different versions of online consents in addition to the instructions controlled by a global configuration file. Is that an avenue you would like to pursue as well?

@pjkohler
Copy link
Collaborator

pjkohler commented Mar 9, 2021

I think including consent forms would add bloat to the experiment files that would not necessarily be that helpful to other researchers, since they would need to acquire consent according to their own IRB protocols.

@joshkenney
Copy link

right, but wouldn't it be worth including a template in the spec?

Also - my experiment leverages the jQuery library. Where should that go in the tree?

@pjkohler
Copy link
Collaborator

pjkohler commented Mar 9, 2021

I am worried about include too many files that are unrelated to the actual running of the experiment. I could see including an ultrasimple "consent-form template" as the first step in the experiment.

@pjkohler
Copy link
Collaborator

pjkohler commented Mar 9, 2021

Suggestion: Require that 'override_safe_mode' is set to 'true' in jsPsych.init for each contribution. This would prevent beginners from encountering errors when attempting to run an experiment on their local machine.

@jodeleeuw
Copy link
Member

@pjkohler We implemented the safe mode with the goal that beginners wouldn't encounter errors when it was set to false and that it should only be set to true if you know how to handle local files (e.g., run your own local dev server). What are you seeing that makes you want to set it to true?

@pjkohler
Copy link
Collaborator

pjkohler commented Mar 10, 2021

ah, I saw a message in the inspector and I think I misunderstood the purpose of override_safe_mode. Scrap that suggestion.

Off-topic: Will leaving override_safe_mode as false also deal with issues with using jspsych-external-html to present a consent-form? I've had to override some browser setting to debug consent forms locally.

@pjkohler
Copy link
Collaborator

@steffejr: FYI, I just did some edits to the Stroop experiment to get in more in line with the standards we have proposed so far. I deleted the unneeded files and folder in the jspsych folder, changed the file names, and moved the images in to an assets subfolder. Now I realize that this may be a problem for cognition.run, which does not allow subfolders (as far as I can tell). I like having subfolders from an organizational point of view, but I want to make it easy to upload the experiment to cognition.run. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants