Skip to content

Commit ab2d0a4

Browse files
Set Inflation Rate During Construction CurrentUnits correctly instead of multiplying by 100 in output (example results numerically unchanged, but will lose a decimal place when regenerated, consistent with original precision before unit fix changes)
1 parent 362690b commit ab2d0a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/geophires_x/Economics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ def __init__(self, model: Model):
970970
Max=1.0,
971971
UnitType=Units.PERCENT,
972972
PreferredUnits=PercentUnit.PERCENT,
973-
CurrentUnits=PercentUnit.PERCENT,
973+
CurrentUnits=PercentUnit.TENTH,
974974
ErrMessage="assume default inflation rate during construction (0)"
975975
)
976976
self.wellcorrelation = self.ParameterDict[self.wellcorrelation.Name] = intParameter(

src/geophires_x/Outputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def PrintOutputs(self, model: Model):
264264
label = Outputs._field_label(field.Name, 49)
265265
f.write(f' {label}{field.value:10.2f} {field.CurrentUnits.value}\n')
266266

267-
f.write(f' Accrued financing during construction: {econ.inflrateconstruction.value*100:10.2f} {econ.inflrateconstruction.CurrentUnits.value}\n')
267+
f.write(f' Accrued financing during construction: {econ.inflrateconstruction.value:10.1f} {econ.inflrateconstruction.CurrentUnits.value}\n')
268268

269269
f.write(f' Project lifetime: {model.surfaceplant.plant_lifetime.value:10.0f} {model.surfaceplant.plant_lifetime.CurrentUnits.value}\n')
270270
f.write(f' Capacity factor: {model.surfaceplant.utilization_factor.value * 100:10.1f} %\n')

0 commit comments

Comments
 (0)