77from aind_data_schema_models .units import FrequencyUnit , PowerUnit , TimeUnit , ConcentrationUnit
88from pydantic import Field , model_validator
99
10- from aind_data_schema .base import DataModel , GenericModel , GenericModelType
10+ from aind_data_schema .base import DataModel , GenericModel
1111
1212
1313class PulseShape (str , Enum ):
@@ -48,15 +48,15 @@ class OptoStimulation(GenericModel):
4848 description = "Duration of baseline recording prior to first pulse train" ,
4949 )
5050 baseline_duration_unit : TimeUnit = Field (default = TimeUnit .S , title = "Baseline duration unit" )
51- other_parameters : Optional [GenericModelType ] = Field (default = None , title = "Other parameters" )
51+ other_parameters : Optional [GenericModel ] = Field (default = None , title = "Other parameters" )
5252 notes : Optional [str ] = Field (default = None , title = "Notes" )
5353
5454
5555class VisualStimulation (GenericModel ):
5656 """Description of visual stimulus parameters. Provides a high level description of stimulus."""
5757
5858 stimulus_name : str = Field (..., title = "Stimulus name" )
59- stimulus_parameters : Optional [GenericModelType ] = Field (
59+ stimulus_parameters : Optional [GenericModel ] = Field (
6060 default = None ,
6161 title = "Stimulus parameters" ,
6262 description = "Define and list the parameter values used (e.g. all TF or orientation values)" ,
@@ -82,7 +82,7 @@ class PhotoStimulationGroup(DataModel):
8282 spiral_duration_unit : TimeUnit = Field (default = TimeUnit .S , title = "Spiral duration unit" )
8383 inter_spiral_interval : Decimal = Field (..., title = "Inter trial interval (s)" )
8484 inter_spiral_interval_unit : TimeUnit = Field (default = TimeUnit .S , title = "Inter trial interval unit" )
85- other_parameters : Optional [GenericModelType ] = Field (default = None , title = "Other parameters" )
85+ other_parameters : Optional [GenericModel ] = Field (default = None , title = "Other parameters" )
8686 notes : Optional [str ] = Field (default = None , title = "Notes" )
8787
8888
@@ -94,7 +94,7 @@ class PhotoStimulation(GenericModel):
9494 groups : List [PhotoStimulationGroup ] = Field (..., title = "Groups" )
9595 inter_trial_interval : Decimal = Field (..., title = "Inter trial interval (s)" )
9696 inter_trial_interval_unit : TimeUnit = Field (default = TimeUnit .S , title = "Inter trial interval unit" )
97- other_parameters : Optional [GenericModelType ] = Field (default = None , title = "Other parameters" )
97+ other_parameters : Optional [GenericModel ] = Field (default = None , title = "Other parameters" )
9898 notes : Optional [str ] = Field (default = None , title = "Notes" )
9999
100100
0 commit comments