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

Camera trigger #771

Open
wants to merge 7 commits into
base: iblrigv8dev
Choose a base branch
from
Open

Camera trigger #771

wants to merge 7 commits into from

Conversation

bimac
Copy link
Contributor

@bimac bimac commented Feb 20, 2025

Logic for triggering the camera and initial delay has been moved out of the state-machines for ChoiceWorldSession.

  • deprecation warning for custom tasks
  • unadapted tasks fall back to old behavior
  • documentation for adapting custom tasks
  • incremented version number

log.info(f'Waiting for {initial_delay} s')
else:
log.info('No initial delay defined')

Copy link
Contributor Author

@bimac bimac Feb 20, 2025

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)

Copy link
Contributor Author

@bimac bimac Feb 20, 2025

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

@coveralls
Copy link

coveralls commented Feb 20, 2025

Coverage Status

Changes unknown
when pulling 7a8067a on camera_trigger
into ** on iblrigv8dev**.

@bimac bimac requested review from oliche and k1o0 February 20, 2025 18:11
@bimac bimac linked an issue Feb 20, 2025 that may be closed by this pull request
1 task
@bimac
Copy link
Contributor Author

bimac commented Feb 21, 2025

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

Successfully merging this pull request may close these issues.

move check of camera TTL from state-machine to initialization
2 participants