-
Notifications
You must be signed in to change notification settings - Fork 22
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
Camera trigger #771
base: iblrigv8dev
Are you sure you want to change the base?
Camera trigger #771
Conversation
log.info(f'Waiting for {initial_delay} s') | ||
else: | ||
log.info('No initial delay defined') | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above looks pretty complex for what it is doing. The goal was to make things as robust and clear as possible whilst keeping things backwards compatible.
if dt > 0: | ||
log.debug(f'Waiting {dt} s to achieve an ITI duration of {self.task_params.ITI_DELAY_SECS} s') | ||
time.sleep(dt) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above won't be needed in the first trial - hence the conditional. We want to start the state machine asap after finishing the initial delay
Changes unknown |
Logic for triggering the camera and initial delay has been moved out of the state-machines for ChoiceWorldSession.