From 2792daa00d2ca7ca5c1b46c0e504084cebb82384 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 8 Aug 2025 15:33:13 +0200 Subject: [PATCH] Revert "refactor(qav3): better number formatting in log messages" This reverts commit 4f3ffef9d4cacf1f3e959fd1469f34edef22d41a. --- quickadapter/user_data/strategies/QuickAdapterV3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickadapter/user_data/strategies/QuickAdapterV3.py b/quickadapter/user_data/strategies/QuickAdapterV3.py index c93b4dc..66a7cee 100644 --- a/quickadapter/user_data/strategies/QuickAdapterV3.py +++ b/quickadapter/user_data/strategies/QuickAdapterV3.py @@ -465,7 +465,7 @@ class QuickAdapterV3(IStrategy): dataframe[EXTREMA_COLUMN] = 0 if len(pivots_indices) == 0: logger.warning( - f"{pair}: no extrema to label (label_period={QuickAdapterV3.td_format(label_period)} / {label_period_candles=} / label_natr_ratio={format_number(label_natr_ratio)})" + f"{pair}: no extrema to label (label_period={QuickAdapterV3.td_format(label_period)} / {label_period_candles=} / {label_natr_ratio=:.2f})" ) else: for pivot_idx, pivot_dir in zip(pivots_indices, pivots_directions): @@ -477,7 +477,7 @@ class QuickAdapterV3(IStrategy): dataframe[EXTREMA_COLUMN] == TrendDirection.UP, 1, 0 ) logger.info( - f"{pair}: labeled {len(pivots_indices)} extrema (label_period={QuickAdapterV3.td_format(label_period)} / {label_period_candles=} / label_natr_ratio={format_number(label_natr_ratio)})" + f"{pair}: labeled {len(pivots_indices)} extrema (label_period={QuickAdapterV3.td_format(label_period)} / {label_period_candles=} / {label_natr_ratio=:.2f})" ) dataframe[EXTREMA_COLUMN] = smooth_extrema( dataframe[EXTREMA_COLUMN], -- 2.43.0