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

Check at entry State if it should go to PreTrial or Offtime state #304

Closed
wants to merge 4 commits into from

Conversation

alexevag
Copy link
Contributor

Trying to solve issue: #298

alexevag added 4 commits July 22, 2022 17:00
In order to go at Offtime State from sleeping status it needs to setup stimulus because we need to call stim.unshow([0,0,0]) in order to have the black screen at "Offtime"

That's why I create prepare_stim function where i setup the stimulus.
At entry function of Offtime state it calls the super.entry() where it tries to save the state at Trial.StateOnset table but it have Integrity Constraint Violation when there is 0 trials.

We have 0 trials when it goes from ready to running and then sleeping due to beh.is_sleep_time()=True
@alexevag alexevag closed this Mar 28, 2023
@alexevag alexevag deleted the patch-2 branch June 19, 2024 10:11
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.

1 participant