We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffcb990 commit 7f1fc0aCopy full SHA for 7f1fc0a
src/geophires_x/Economics.py
@@ -1383,7 +1383,7 @@ def __init__(self, model: Model):
1383
)
1384
1385
fir_default_unit = PercentUnit.PERCENT
1386
- fir_default_val = self.discountrate.quantity().to(fir_default_unit.value).magnitude
+ fir_default_val = self.discountrate.quantity().to('percent').magnitude # pint can't handle '%' in python 3.8
1387
self.FixedInternalRate = self.ParameterDict[self.FixedInternalRate.Name] = floatParameter(
1388
"Fixed Internal Rate",
1389
DefaultValue=fir_default_val,
0 commit comments