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

Re-factor numeraire curve key handling #73

Conversation

sschlenkrich
Copy link
Member

This PR changes the behaviour of numeraire discount_curve_key handling.

  • Require context_key consistent with numeraire context key
  • Make behaviour consistent with bank_account method
  • update bermudan_swaption_leg method
  • update examples yaml and setup
  • update unittests and componenttests

The change is inteded to remove ambigous handling of curve keys. The new methodology requires the user to explicitely specify the discounting currency in AMC payoffs and for scenario calculation. If the specification is not consistent with the used context then an exception is thrown.

  - Require context_key consistent with numeraire context key
  - Make behaviour consistent with bank_account method
  - update bermudan_swaption_leg method
  - update examples yaml and setup
  - update unittests and componenttests
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 88.88889% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 98.20%. Comparing base (502c6b7) to head (06a8c35).

Files Patch % Lines
src/paths/PathMethods.jl 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #73      +/-   ##
==========================================
- Coverage   98.23%   98.20%   -0.03%     
==========================================
  Files          70       70              
  Lines        3569     3572       +3     
==========================================
+ Hits         3506     3508       +2     
- Misses         63       64       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sschlenkrich sschlenkrich merged commit ced3c38 into frame-consulting:main Mar 17, 2024
4 checks passed
@sschlenkrich sschlenkrich deleted the wip/refactor-discount_curve-key branch March 17, 2024 17:10
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.

3 participants