api.task_logic

pydantic model aind_behavior_device_olfactometer.task_logic.OlfactometerCalibrationLogic[source]

Bases: AindBehaviorTaskLogicModel

Olfactometer operation control model that is used to run a calibration data acquisition workflow

Config:
  • extra: str = forbid

  • validate_assignment: bool = True

  • validate_defaults: bool = True

  • strict: bool = True

  • str_strip_whitespace: bool = True

Fields:
Validators:
field name: str = 'OlfactometerCalibration'[source]
field task_parameters: OlfactometerCalibrationParameters [Required][source]
field version: Literal['0.1.0'] = '0.1.0'[source]
Validated by:
  • coerce_version

pydantic model aind_behavior_device_olfactometer.task_logic.OlfactometerCalibrationParameters[source]

Bases: TaskParameters

Config:
  • extra: str = allow

  • validate_assignment: bool = True

  • validate_defaults: bool = True

  • strict: bool = True

  • str_strip_whitespace: bool = True

Fields:
Validators:

field channel_config: Dict[OlfactometerChannel, OlfactometerChannelConfig] = {}[source]

Configuration of olfactometer channels

field full_flow_rate: float = 1000[source]

Full flow rate of the olfactometer

Constraints:
  • ge = 0

  • le = 1000

field n_repeats_per_stimulus: int = 1[source]

Number of repeats per stimulus

Constraints:
  • ge = 1

field time_off: float = 1[source]

Time (s) the valve is close during calibration

Constraints:
  • ge = 0

field time_on: float = 1[source]

Time (s) the valve is open during calibration

Constraints:
  • ge = 0