@@ -519,24 +519,7 @@ def read_parameters(self, model:Model) -> None:
519
519
self .plant_type .value = PlantType .INDUSTRIAL
520
520
521
521
elif ParameterToModify .Name == 'Power Plant Type' :
522
- if ParameterReadIn .sValue == str (1 ):
523
- ParameterToModify .value = PlantType .SUB_CRITICAL_ORC
524
- elif ParameterReadIn .sValue == str (2 ):
525
- ParameterToModify .value = PlantType .SUPER_CRITICAL_ORC
526
- elif ParameterReadIn .sValue == str (3 ):
527
- ParameterToModify .value = PlantType .SINGLE_FLASH
528
- elif ParameterReadIn .sValue == str (4 ):
529
- ParameterToModify .value = PlantType .DOUBLE_FLASH
530
- elif ParameterReadIn .sValue == str (5 ):
531
- ParameterToModify .value = PlantType .ABSORPTION_CHILLER
532
- elif ParameterReadIn .sValue == str (6 ):
533
- ParameterToModify .value = PlantType .HEAT_PUMP
534
- elif ParameterReadIn .sValue == str (7 ):
535
- ParameterToModify .value = PlantType .DISTRICT_HEATING
536
- elif ParameterReadIn .sValue == str (8 ):
537
- ParameterToModify .value = PlantType .RTES
538
- else :
539
- ParameterToModify .value = PlantType .INDUSTRIAL
522
+ ParameterToModify .value = PlantType .get_plant_type_from_input_string (ParameterReadIn .sValue )
540
523
if self .enduse_option .value == EndUseOptions .ELECTRICITY :
541
524
# simple single- or double-flash power plant assumes no production well pumping
542
525
if ParameterToModify .value in [PlantType .SINGLE_FLASH , PlantType .DOUBLE_FLASH ]:
0 commit comments