Load latest file

This commit is contained in:
Matthias
2020-09-27 16:50:22 +02:00
parent ff96cf154c
commit c42a924df8
4 changed files with 53 additions and 9 deletions

View File

@@ -7,6 +7,7 @@ from colorama import init as colorama_init
from freqtrade.configuration import setup_utils_configuration
from freqtrade.exceptions import OperationalException
from freqtrade.state import RunMode
from freqtrade.data.btanalysis import get_latest_hyperopt_file
logger = logging.getLogger(__name__)
@@ -40,8 +41,7 @@ def start_hyperopt_list(args: Dict[str, Any]) -> None:
'filter_max_objective': config.get('hyperopt_list_max_objective', None),
}
results_file = (config['user_data_dir'] /
'hyperopt_results' / 'hyperopt_results.pickle')
results_file = get_latest_hyperopt_file(config['user_data_dir'] / 'hyperopt_results')
# Previous evaluations
epochs = Hyperopt.load_previous_results(results_file)
@@ -80,8 +80,8 @@ def start_hyperopt_show(args: Dict[str, Any]) -> None:
print_json = config.get('print_json', False)
no_header = config.get('hyperopt_show_no_header', False)
results_file = (config['user_data_dir'] /
'hyperopt_results' / 'hyperopt_results.pickle')
results_file = get_latest_hyperopt_file(config['user_data_dir'] / 'hyperopt_results')
n = config.get('hyperopt_show_index', -1)
filteroptions = {