Skip to content

issue with ITIs #839

@bimac

Description

@bimac

ITIs are not 1s as DEAD_TIME parameter has no effect.

here's the actual dead time inbetween state machine runs:

Image

this code in iblrig.base_choice_world._run() does nothing:

            # handle ITI durations
            if trial_number > 0:
                # The ITI_DELAY_SECS defines the grey screen period within the state machine, where the
                # Bpod TTL is HIGH. The DEAD_TIME param defines the time between last trial and the next
                dead_time = self.task_params.get('DEAD_TIME', 0.5)
                dt = self.task_params.ITI_DELAY_SECS - dead_time - (time.time() - time_last_trial_end)

                # wait to achieve the desired ITI duration
                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)

Sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions