File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 warnings .filterwarnings ("ignore" , message = "Pydantic serializer warnings:" )
3232
3333
34- """
35- Pydantic-version agnostic
36- """
37-
38-
3934def _get_dtype (field , name : str ):
4035 """Get dtype from a VOCS field, handling discrete variables."""
4136 dtype = getattr (field , "dtype" , None )
@@ -312,10 +307,6 @@ def check_valid_out(cls, v):
312307 def check_valid_in (cls , v ):
313308 return check_valid_in (cls , v )
314309
315- @model_validator (mode = "after" )
316- def check_set_gen_specs_from_variables (self ):
317- return check_set_gen_specs_from_variables (self )
318-
319310 @model_validator (mode = "after" )
320311 def set_fields_from_vocs (self ):
321312 """Set persis_in and outputs from VOCS if vocs is provided and fields are not set."""
@@ -357,6 +348,10 @@ def set_fields_from_vocs(self):
357348
358349 return self
359350
351+ @model_validator (mode = "after" )
352+ def check_set_gen_specs_from_variables (self ):
353+ return check_set_gen_specs_from_variables (self )
354+
360355
361356class AllocSpecs (BaseModel ):
362357 """
You can’t perform that action at this time.
0 commit comments