jzip generation from osexp file
Dear all,
I'm trying to create an automated pipeline for acceptance testing of a jatos server. Since the end-users often need to link their osexp experiment to a Qualtrics survey, I wanted to incorporate that into the tests.
In order to test this, I need to generate an osexp experiment with an embedded hyperlink that I only know at runtime. I currently change a variable name in the .osexp file with string replacement, but I haven't found a way to (programmatically) convert the osexp file to an (uploadable) jzip file.
In short: is there a way to convert an .osexp file to a .jzip file without using the opensesame user interface? I have found the exp_to_jzip function in the osexp python module, but it seems to be broken and I haven't been able to fix it yet.
Thanks in advance for your insights :)
Comments
Hi @bijsterveldjvan ,
The function that converts an experiment to a JATOS
jzipis indeedexp_to_jzip(), which isn't broken but it's also not intended to be used externally. (Although you're free to do so, of course.)I would say there are two pragmatic ways to handle your case:
jzip, patch the.osexpfile, and then rezip it back together.Do either of these options work for you?
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi @sebastiaan,
Thanks for the response!
In the meantime we've solved the problem by sending the link as an argument when running the study through a JATOS study link. Your options also sound practical though!
Thanks again,
Jens