From 6e9004d8860809c048b1935446ee9350aaf94f89 Mon Sep 17 00:00:00 2001 From: Sergey Kikevich Date: Fri, 11 Oct 2024 11:37:59 +0300 Subject: [PATCH] fix: helpers.Frame.get_wealth_indexes_with_cashflow dcf_object must have the same cashflow_parameters --- okama/common/helpers/helpers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/okama/common/helpers/helpers.py b/okama/common/helpers/helpers.py index 741d5ff..3b6a578 100644 --- a/okama/common/helpers/helpers.py +++ b/okama/common/helpers/helpers.py @@ -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