We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cfecab commit ce7d813Copy full SHA for ce7d813
freqtrade/optimize/space/decimalspace.py
@@ -6,12 +6,19 @@ def __init__(
6
self,
7
low: float,
8
high: float,
9
+ *,
10
step: float | None = None,
11
decimals: int = 3,
12
name=None,
13
):
14
"""
15
FloatDistribution with a fixed step size.
16
+ Only one of step or decimals can be set.
17
+ :param low: lower bound
18
+ :param high: upper bound
19
+ :param step: step size (e.g. 0.001)
20
+ :param decimals: number of decimal places to round to (e.g. 3)
21
+ :param name: name of the distribution
22
23
if decimals is not None and step is not None:
24
raise ValueError("You can only set one of decimals or step")
0 commit comments