iblrig.base_tasks

Commonalities for all tasks.

This module provides hardware mixins that can be used together with BaseSession to compose tasks. This module tries to exclude task related logic.

Classes

BaseSession

BonsaiRecordingMixin

BonsaiVisualStimulusMixin

BpodMixin

EmptySession

Frame2TTLMixin

Frame 2 TTL interface for state machine.

HasBpod

NetworkSession

A mixin for communicating to auxiliary acquisition PC over a network.

OSCClient

Handles communication to Bonsai using a UDP Client OSC channels: USED: /t -> (int) trial number current /p -> (int) position of stimulus init for current trial /h -> (float) phase of gabor for current trial /c -> (float) contrast of stimulus for current trial /f -> (float) frequency of gabor patch for current trial /a -> (float) angle of gabor patch for current trial /g -> (float) gain of RE to visual stim displacement /s -> (float) sigma of the 2D gaussian of gabor /e -> (int) events transitions USED BY SOFTCODE HANDLER FUNC /r -> (int) whether to reverse the side contingencies (0, 1)

RotaryEncoderMixin

Rotary encoder interface for state machine.

SoundMixin

Sound interface methods for state machine.

SpontaneousSession

A Spontaneous task doesn't have trials, it just runs until the user stops it.

ValveMixin