Skip to content

Commit 1a3db88

Browse files
Address TODOs to use parameterized contingency in tooltip text (NREL#383)
1 parent e1d3c51 commit 1a3db88

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/geophires_x/Economics.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,7 @@ def __init__(self, model: Model):
17141714
)
17151715

17161716
stimulation_contingency_and_indirect_costs_tooltip = (
1717-
f'plus 15% contingency ' # TODO https://github.com/NREL/GEOPHIRES-X/issues/383
1717+
f'plus {self.contingency_percentage.quantity().to(convertible_unit("%")).magnitude:g}% contingency '
17181718
f'plus {self.stimulation_indirect_capital_cost_percentage.quantity().to(convertible_unit("%")).magnitude}% '
17191719
f'indirect costs'
17201720
)
@@ -1736,8 +1736,9 @@ def __init__(self, model: Model):
17361736
)
17371737

17381738
contingency_and_indirect_costs_tooltip = (
1739-
f'plus 15% contingency ' # TODO https://github.com/NREL/GEOPHIRES-X/issues/383
1740-
f'plus {self.indirect_capital_cost_percentage.quantity().to(convertible_unit("%")).magnitude}% indirect costs'
1739+
f'plus {self.contingency_percentage.quantity().to(convertible_unit("%")).magnitude:g}% contingency '
1740+
f'plus {self.indirect_capital_cost_percentage.quantity().to(convertible_unit("%")).magnitude}% '
1741+
f'indirect costs'
17411742
)
17421743

17431744
self.Cexpl = self.OutputParameterDict[self.Cexpl.Name] = OutputParameter(

0 commit comments

Comments
 (0)