From: Jérôme Benoit Date: Mon, 16 Jun 2025 09:37:08 +0000 (+0200) Subject: refactor(qav3): trivial kwargs handling cleanup X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1d8d5df15ac47d6229accd8a09ea4622a37e3d0c;p=freqai-strategies.git refactor(qav3): trivial kwargs handling cleanup Signed-off-by: Jérôme Benoit --- diff --git a/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py b/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py index 0b3ad66..69af6fd 100644 --- a/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py +++ b/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py @@ -1411,7 +1411,7 @@ def zigzag( polyfit_kwargs = {} if enable_weighting: - polyfit_kwargs = {"w": np.linspace(0.5, 1.5, log_next_closes_length)} + polyfit_kwargs["w"] = np.linspace(0.5, 1.5, log_next_closes_length) log_next_slope = np.polyfit( range(log_next_closes_length), log_next_closes, diff --git a/quickadapter/user_data/strategies/Utils.py b/quickadapter/user_data/strategies/Utils.py index c0e2950..d470445 100644 --- a/quickadapter/user_data/strategies/Utils.py +++ b/quickadapter/user_data/strategies/Utils.py @@ -535,7 +535,7 @@ def zigzag( polyfit_kwargs = {} if enable_weighting: - polyfit_kwargs = {"w": np.linspace(0.5, 1.5, log_next_closes_length)} + polyfit_kwargs["w"] = np.linspace(0.5, 1.5, log_next_closes_length) log_next_slope = np.polyfit( range(log_next_closes_length), log_next_closes,