We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84a5482 commit c27c8a3Copy full SHA for c27c8a3
funscript_editor/algorithms/signalprocessing.py
@@ -14,7 +14,7 @@ def scale_signal(signal :list, lower: float = 0, upper: float = 99) -> list:
14
Returns:
15
list: list with scaled signal
16
"""
17
- return [(upper - lower) * (x - min(signal)) / (max(signal) - min(signal)) + lower for x in signal]
+ return [(float(upper) - float(lower)) * (x - min(signal)) / (max(signal) - min(signal)) + float(lower) for x in signal]
18
19
20
def scale_signal_with_anomalies(
0 commit comments