OSeMOSYS / otoole

OSeMOSYS Tools for Energy
https://otoole.readthedocs.io
MIT License
25 stars 18 forks source link

Fix `CapitalInvestment` result calculation #236

Closed trevorb1 closed 3 weeks ago

trevorb1 commented 3 weeks ago

Description

In this PR I have corrected how DiscountRate and DiscountRateIdv are used in the CapitalInvestment calculation. Specifically, the logic has been updated so:

A test called TestCapitalInvestment has been added to test this logic. Also, the DicountRateIdv fixture was update so its values are different from the DiscountRate fixture.

Issue Ticket Number

Closes #220 Closes #228

Documentation

na