extra filename option added
This commit is contained in:
parent
cdd4745693
commit
e2ab13a94c
@ -112,6 +112,9 @@ class HyperStrategyMixin:
|
||||
self._ft_load_params(protection_params, 'protection', hyperopt)
|
||||
|
||||
def load_params_from_file(self) -> Dict:
|
||||
filename_str = self.__class__.__name__
|
||||
filename = Path(filename_str).with_suffix('.json')
|
||||
if not filename.is_file():
|
||||
filename_str = getattr(self, '__file__', '')
|
||||
if not filename_str:
|
||||
return {}
|
||||
|
Loading…
Reference in New Issue
Block a user