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

The on_timeline_start function does not run at the start of every repetition #3410

Open
ChangrunHuang opened this issue Oct 4, 2024 · 0 comments

Comments

@ChangrunHuang
Copy link

ChangrunHuang commented Oct 4, 2024

Hi I am coding an online experiment. During debugging I notice that the on_timeline_start function only runs once within a timeline node while the the repetition was indicated more than 1. This does not comply with the documentation in the website

The on_timeline_start callback can be declared in a timeline node. The callback will be triggered when the timeline starts during the experiment, including when timeline_variables, loop_function, or sample options are used. If a conditional_function is used, then the conditional function will execute first, and the on_timeline_start function will only execute if the conditional function returns true. If the repetitions option is used, this function will be triggered at the start of every repetition.

the code:
image
the test: only trigger once
image

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