File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -638,6 +638,12 @@ def read_parameters(self, model: Model) -> None:
638
638
else :
639
639
model .logger .info ("No parameters read because no content provided" )
640
640
641
+ if not isinstance (self .resoption .value , ReservoirModel ):
642
+ # resoption is an intParameter with an int default value whose working value gets set to a ReservoirModel
643
+ # enum when the parameter is read, so convert to the enum from the default if it's not read as a parameter.
644
+ # (TODO: resolve the enum/int value discrepancy so this workaround can be removed)
645
+ self .resoption .value = ReservoirModel .get_reservoir_model_from_input_string (str (self .resoption .value ))
646
+
641
647
model .logger .info (f'complete { str (__class__ )} : { sys ._getframe ().f_code .co_name } ' )
642
648
643
649
@lru_cache (maxsize = 1024 )
You can’t perform that action at this time.
0 commit comments