fix: download-data progressbars should work properly

This commit is contained in:
Matthias
2024-12-31 10:01:02 +01:00
parent 503eb1e55d
commit 9beae3d164
2 changed files with 3 additions and 5 deletions

View File

@@ -20,7 +20,6 @@ from joblib.externals import cloudpickle
from freqtrade.constants import FTHYPT_FILEVERSION, LAST_BT_RESULT_FN, Config
from freqtrade.enums import HyperoptState
from freqtrade.exceptions import OperationalException
from freqtrade.loggers import error_console
from freqtrade.misc import file_dump_json, plural
from freqtrade.optimize.hyperopt.hyperopt_logger import logging_mp_handle, logging_mp_setup
from freqtrade.optimize.hyperopt.hyperopt_optimizer import HyperOptimizer
@@ -282,10 +281,7 @@ class Hyperopt:
logger.info(f"Effective number of parallel workers used: {jobs}")
# Define progressbar
with get_progress_tracker(
console=error_console,
cust_callables=[self._hyper_out],
) as pbar:
with get_progress_tracker(cust_callables=[self._hyper_out]) as pbar:
task = pbar.add_task("Epochs", total=self.total_epochs)
start = 0

View File

@@ -7,6 +7,7 @@ from rich.progress import (
TimeRemainingColumn,
)
from freqtrade.loggers import error_console
from freqtrade.util.rich_progress import CustomProgress
@@ -30,5 +31,6 @@ def get_progress_tracker(**kwargs) -> CustomProgress:
"",
TimeRemainingColumn(),
expand=True,
console=error_console,
**kwargs,
)