How to combine different OS experiment in a single Jatos experiment
Hi all,
I have a question that seems basic, but I can't figure out. I've been searching for solutions in the Forum and I have read two differents threads (https://forum.cogsci.nl/discussion/8239/multiple-os-experiments-in-a-single-jatos-experiment and https://forum.cogsci.nl/discussion/7536/run-one-study-with-several-tasks) in vain.
I want to conduct a study that includes several sub-experiments, which need to be run in the same order for each participant.
On my local Jatos I have imported the two OS experiment independently. Then I created a new study in Jatos (for instance Study1 with the corresponding folder in the sudy_assets_roots). In Study1, I added each of the imported experiment as components (let's say Comp1 and Comp2). Then in the Study1 folder in the sudy_assets_roots, I added the subfolder of Comp1. In Jatos, I have copied the html path of Comp1 in the Properties of Comp1. I did the same with Comp2.
The first component (Comp1) runs independently, but not the second (Comp2).
The problem comes maybe from the way I grouped the folder of the components in the study_assets_roots?
I'm taking my first steps on jatos, so it's possible that I've missed a few steps or misunderstood something.
I would be very grateful if someone can help me!
Thanks!
Comments
Hi,
If I understood correctly what you've done, that approach should work. I've had trouble getting this working properly though, and never had the time to figure out why.
Perhaps you could try putting the two HTML files directly inside the Study1/ folder, and modify the HTML files accordingly to make sure that the scripts know where to look for their corresponding javascripts. (I.e. inside the header section, make sure you include a call to
component1/<yourScript.js>
instead of the call to the script alone.Could you try and report back? In principle there is no reason why this should work and what you tried, not (if you made no mistakes). So if this helps, please let us know and will should look into it.
Hope this helps,
Elisa
Dear Elisa,
Thanks for your answer.
I have tried to put the two HTML files directly inside the Study1/ folder and modify the HTML files accordingly. But now, even the 1rst component don't run. :( It's stuck on Building the experiment.
I know pretty nothing about html files, so I try my best to modify the HTML files (I attached a picture of what I have modified). However, I don't know how and where to include a "call to " I am sorry. I am afraid I am a bit limited...
Do you have any idea of what I could do? Maybe there is a step by step procedure I can follow to be sure to do things correctly?
Sincerely,
Clara
Hi, you can send me your study and I can try to have a quick look. elisa.filevich@gmail.com
Thanks a lot!
I've sent you the study back, all you needed to do (I think) is to include the subfolders in the HTML path of each of the components.
Let me know if it doesn't work
Best
Elisa
Hi @sebastiaan
I'm trying to help with this question here and have to admit I'm a bit stuck.
I am trying to combine two OSWeb studies into one, by transforming them into two separate components of a singleJATOS study.
I tried to combine them all in a single pooled folder, but then two different
orig.osexp
files end up in the same place, and I didn't see which other script calls these, so I did not want to change their names.The alternative, then, is to place each OSWeb folder into a single study, which would mean (I think?) that I would need to change the path in the HTML file. I tried changing the value of const
jatosAssetsFolder = "44d6-etc"
to a path that reflects that this is now a subfolder of the study with the Assets folder merged_study:const jatosAssetsFolder = "merged_study/44d6-etc"
But when I run that, I see a 'failed to load resource' error (and the browser shows a message that there is no WebGL).I am pretty sure I'm missing something small: I need to change another path somewhere. But I don't know what I'm missing.
Essentially, What would I need to change, if I wanted to edit exported OSWeb scripts to change the home directory?
Thanks!
Elisa
Hi @csg and @elisa ,
There is no convenient way to combine to OSWeb experiments into a single JATOS study. However, a simple workaround would be to simply create a new experiment that initially contains only an empty experiment sequence, and then copy-paste the two experiment into this. That way you end up with only a single OSWeb experiment that you can easily host on JATOS. Would that be an option?
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
I think the main reason for this problem that in OSWeb the same filename is used for actual different files from different experiments, e.g.
/js/osweb.b550aae48755b942591f.bundle.js
or
/js/vendors~osweb.620553755c063073df3c.bundle.js
have the same name in both experiments but do not have the same content.
@sebastiaan Isn't it something that can be changed in OSWeb? Each experiment gets its own unique filename? I mean in for the next release of OSWeb.
Best,
Kristian
@kri That would be possible, of course. But it would mainly make sense if it's accompanied by a more general restructuring that would allow OSWeb to build multi-component JATOS studies, which would be nice but I don't have the impression there is huge demand for this.
Check out SigmundAI.eu for our OpenSesame AI assistant!
@sebastiaan I understand and it's probably a bigger effort to restructure OSWeb in a way to enable it to build multi-component JATOS studies. Maybe, it could be worth it to just do the file naming issue earlier - if it is a quick change? Then people could already combine them manually by combining the experiment folders.
@kri Doing this properly would take a bit of restructuring, for example because experiments may have non-identical files in the file pool with identical names. (Which would clash.) But I'll take this as a feature request for future releases!
Check out SigmundAI.eu for our OpenSesame AI assistant!
@sebastiaan I understand. Hopefully we'll have this in the future.