Skip to content

Commit f3993e2

Browse files
Another workaround attempt for py39 on windows (previous workaround attempt failed - https://github.com/softwareengineerprogrammer/GEOPHIRES/actions/runs/15422551915/job/43401255570)
1 parent 33305bb commit f3993e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/geophires_x/EconomicsSam.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ def _calculate_nominal_discount_rate_and_wacc(model: Model, single_owner: Single
219219

220220
def _calculate_moic(cash_flow: list[list[Any]], model) -> float | None:
221221
try:
222-
total_capital_invested_USD = Decimal(_cash_flow_profile_row(cash_flow, 'Issuance of equity ($)')[0])
223-
total_value_received_from_investment_USD = Decimal(
224-
float(np.sum(_cash_flow_profile_row(cash_flow, 'Total pre-tax returns ($)')))
222+
total_capital_invested_USD: Decimal = Decimal(_cash_flow_profile_row(cash_flow, 'Issuance of equity ($)')[0])
223+
total_value_received_from_investment_USD: Decimal = sum(
224+
[Decimal(it) for it in _cash_flow_profile_row(cash_flow, 'Total pre-tax returns ($)')]
225225
)
226226
return float(total_value_received_from_investment_USD / total_capital_invested_USD)
227227
except Exception as e:

0 commit comments

Comments
 (0)