From 1d8d5df15ac47d6229accd8a09ea4622a37e3d0c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 16 Jun 2025 11:37:08 +0200 Subject: [PATCH] refactor(qav3): trivial kwargs handling cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py | 2 +- quickadapter/user_data/strategies/Utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, -- 2.43.0