Skip to content

Commit

Permalink
fix: helpers.Frame.get_wealth_indexes_with_cashflow dcf_object must h…
Browse files Browse the repository at this point in the history
…ave the same cashflow_parameters
  • Loading branch information
chilango74 committed Oct 11, 2024
1 parent 33532b2 commit 6e9004d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions okama/common/helpers/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ def get_wealth_indexes_with_cashflow(
"""
pf_object = cashflow_parameters.parent
dcf_object = cashflow_parameters.parent.dcf
dcf_object.cashflow_parameters = cashflow_parameters
amount = getattr(cashflow_parameters, "amount", None)
period_initial_amount = (
dcf_object.initial_investment_pv
Expand Down

0 comments on commit 6e9004d

Please sign in to comment.