Don't import joblib for regular strategies

This commit is contained in:
Matthias 2021-05-02 08:44:16 +02:00
parent 0e359dcb7a
commit ac2e1eb3d7

View File

@ -9,7 +9,6 @@ from typing import Any, Dict, List
import rapidjson import rapidjson
import tabulate import tabulate
from colorama import Fore, Style from colorama import Fore, Style
from joblib import load
from pandas import isna, json_normalize from pandas import isna, json_normalize
from freqtrade.exceptions import OperationalException from freqtrade.exceptions import OperationalException
@ -37,6 +36,8 @@ class HyperoptTools():
""" """
Read hyperopt results from file Read hyperopt results from file
""" """
from joblib import load
logger.info("Reading epochs from '%s'", results_file) logger.info("Reading epochs from '%s'", results_file)
data = load(results_file) data = load(results_file)
return data return data