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

Issue:Timeline and Data Variables Missing from Experiment Output File #109

Open
snamazova opened this issue Jan 17, 2025 · 0 comments
Open

Comments

@snamazova
Copy link

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)
``
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

1 participant