Problem:
When using sweetbean to create an experiment, I noticed that the timeline and data variables are not included in the output file created by method .to_html with path_local_download argument
Notes:
I believe that the issue ocurrs due to the fact that the def to_js only includes shared variables.
def to_js(self, path_local_download=None):
self.js = ""
for b in self.blocks:
b.to_js()
for s in b.stimuli:
shared_variables = s.return_shared_variables()
for s_key in shared_variables:
self.js += f"{shared_variables[s_key].set()}\n"
Further to_js also called in to_html`to save created js file
def to_html(self, path, path_local_download=None):
"""
Save the experiment to an HTML file
"""
self.to_js(path_local_download)
``