Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct CRF calcualtions for empty discount rates #234

Merged
merged 6 commits into from
Sep 23, 2024
Merged

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
18 checks passed
@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