@@ -258,7 +258,7 @@ def __init__(self, model: Model):
258258 Min = 0.1 ,
259259 Max = 1.0 ,
260260 UnitType = Units .PERCENT ,
261- PreferredUnits = PercentUnit .TENTH ,
261+ PreferredUnits = PercentUnit .PERCENT ,
262262 CurrentUnits = PercentUnit .TENTH ,
263263 Required = True ,
264264 ErrMessage = "assume default circulation pump efficiency (0.75)" ,
@@ -551,9 +551,7 @@ def read_parameters(self, model:Model) -> None:
551551 key = ParameterToModify .Name .strip ()
552552 if key in model .InputParameters :
553553 ParameterReadIn = model .InputParameters [key ]
554- # Before we change the parameter, let's assume that the unit preferences will match -
555- # if they don't, the later code will fix this.
556- ParameterToModify .CurrentUnits = ParameterToModify .PreferredUnits
554+
557555 # this should handle all the non-special cases
558556 ReadParameter (ParameterReadIn , ParameterToModify , model )
559557
@@ -563,7 +561,6 @@ def read_parameters(self, model:Model) -> None:
563561 ParameterToModify .value = end_use_option
564562 if end_use_option == EndUseOptions .HEAT :
565563 self .plant_type .value = PlantType .INDUSTRIAL
566-
567564 elif ParameterToModify .Name == 'Power Plant Type' :
568565 ParameterToModify .value = PlantType .from_input_string (ParameterReadIn .sValue )
569566 if self .enduse_option .value == EndUseOptions .ELECTRICITY :
0 commit comments