Skip to content

Comments

Correct CRF calcualtions for empty discount rates #234

Merged
trevorb1 merged 6 commits intodevelopfrom
issue-217
Sep 23, 2024
Merged

Correct CRF calcualtions for empty discount rates #234
trevorb1 merged 6 commits intodevelopfrom
issue-217

Conversation

@trevorb1
Copy link
Member

Description

In this PR I have addressed the failing CRF calculation if no discount rate is provided (which was partially addressed in PR #216). Following @willu47's suggestion in ticket #217, the _expand_default() function is used to ensure discount rate data is always passed into the CRF, PVA, and Discount Factor functions. Since handling the DiscountRate and DiscountRateIdv differences is a little confusing (imo), I also added in ValueError checks to the functions to check for non-empty discount rates - but these shouldnt really be needed. Just added as double check.

Issue Ticket Number

closes #217

Documentation

na

@trevorb1 trevorb1 merged commit cf61d2b into develop Sep 23, 2024
@willu47 willu47 deleted the issue-217 branch September 25, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: otoole.results calculation of CRF fails if no data in discount_rate parameter

1 participant