Skip to content

Commit

Permalink
Update pydantic_definitions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bimac committed Aug 31, 2024
1 parent d6c6b95 commit 6226a4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iblrig/pydantic_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ def preallocate_dataframe(cls, n_rows: int) -> pd.DataFrame:

class TrialDataChoiceWorld(TrialDataModel):
"""Definition of Trial Data for ChoiceWorldSession"""

contrast: Annotated[float, Ge(0.0), Le(1.0)]
position: float
quiescent_period: Annotated[float, Ge(0.0)]
Expand All @@ -271,6 +272,7 @@ class TrialDataChoiceWorld(TrialDataModel):

class TrialDataActiveChoiceWorld(TrialDataChoiceWorld):
"""Definition of Trial Data for ActiveChoiceWorldSession"""

response_side: Annotated[int, Ge(-1), Le(1)]
response_time: Annotated[float, Ge(0.0)]
trial_correct: bool

0 comments on commit 6226a4d

Please sign in to comment.