Colorama is not necessary for hyperopt commands anymore

This commit is contained in:
Matthias 2024-07-08 06:38:29 +02:00
parent 94565d0d39
commit 28f4e1c068

View File

@ -2,8 +2,6 @@ import logging
from operator import itemgetter from operator import itemgetter
from typing import Any, Dict from typing import Any, Dict
from colorama import init as colorama_init
from freqtrade.configuration import setup_utils_configuration from freqtrade.configuration import setup_utils_configuration
from freqtrade.data.btanalysis import get_latest_hyperopt_file from freqtrade.data.btanalysis import get_latest_hyperopt_file
from freqtrade.enums import RunMode from freqtrade.enums import RunMode
@ -36,9 +34,6 @@ def start_hyperopt_list(args: Dict[str, Any]) -> None:
# Previous evaluations # Previous evaluations
epochs, total_epochs = HyperoptTools.load_filtered_results(results_file, config) epochs, total_epochs = HyperoptTools.load_filtered_results(results_file, config)
if print_colorized:
colorama_init(autoreset=True)
if not export_csv: if not export_csv:
try: try:
h_out = HyperoptOutput() h_out = HyperoptOutput()