mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
use fstring
This commit is contained in:
parent
fa8fc3e4ce
commit
79aab4cce2
|
@ -71,10 +71,8 @@ class Hyperopt(Backtesting):
|
||||||
# Ensure the number of dimensions match
|
# Ensure the number of dimensions match
|
||||||
# the number of parameters in the list x.
|
# the number of parameters in the list x.
|
||||||
if len(params) != len(dimensions):
|
if len(params) != len(dimensions):
|
||||||
msg = "Mismatch in number of search-space dimensions. " \
|
raise ValueError('Mismatch in number of search-space dimensions. '
|
||||||
"len(dimensions)=={} and len(x)=={}"
|
f'len(dimensions)=={len(dimensions)} and len(x)=={len(params)}')
|
||||||
msg = msg.format(len(dimensions), len(params))
|
|
||||||
raise ValueError(msg)
|
|
||||||
|
|
||||||
# Create a dict where the keys are the names of the dimensions
|
# Create a dict where the keys are the names of the dimensions
|
||||||
# and the values are taken from the list of parameters x.
|
# and the values are taken from the list of parameters x.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user