Fix some refactoring problems
This commit is contained in:
parent
477515c4b5
commit
8044846d37
@ -108,7 +108,7 @@ class Arguments(object):
|
|||||||
'--customhyperopt',
|
'--customhyperopt',
|
||||||
help='specify hyperopt class name (default: %(default)s)',
|
help='specify hyperopt class name (default: %(default)s)',
|
||||||
dest='hyperopt',
|
dest='hyperopt',
|
||||||
default=Constants.DEFAULT_HYPEROPT,
|
default=constants.DEFAULT_HYPEROPT,
|
||||||
type=str,
|
type=str,
|
||||||
metavar='NAME',
|
metavar='NAME',
|
||||||
)
|
)
|
||||||
|
@ -9,7 +9,7 @@ import logging
|
|||||||
import os
|
import os
|
||||||
from typing import Optional, Dict, Type
|
from typing import Optional, Dict, Type
|
||||||
|
|
||||||
from freqtrade.constants import Constants
|
from freqtrade.constants import DEFAULT_HYPEROPT
|
||||||
from freqtrade.optimize.interface import IHyperOpt
|
from freqtrade.optimize.interface import IHyperOpt
|
||||||
|
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ class HyperOptResolver(object):
|
|||||||
config = config or {}
|
config = config or {}
|
||||||
|
|
||||||
# Verify the hyperopt is in the configuration, otherwise fallback to the default hyperopt
|
# Verify the hyperopt is in the configuration, otherwise fallback to the default hyperopt
|
||||||
hyperopt_name = config.get('hyperopt') or Constants.DEFAULT_HYPEROPT
|
hyperopt_name = config.get('hyperopt') or DEFAULT_HYPEROPT
|
||||||
self.hyperopt = self._load_hyperopt(hyperopt_name, extra_dir=config.get('hyperopt_path'))
|
self.hyperopt = self._load_hyperopt(hyperopt_name, extra_dir=config.get('hyperopt_path'))
|
||||||
|
|
||||||
def _load_hyperopt(
|
def _load_hyperopt(
|
||||||
|
Loading…
Reference in New Issue
Block a user