Skip to content

Commit c27c8a3

Browse files
author
arch
committed
force float
1 parent 84a5482 commit c27c8a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

funscript_editor/algorithms/signalprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def scale_signal(signal :list, lower: float = 0, upper: float = 99) -> list:
1414
Returns:
1515
list: list with scaled signal
1616
"""
17-
return [(upper - lower) * (x - min(signal)) / (max(signal) - min(signal)) + lower for x in signal]
17+
return [(float(upper) - float(lower)) * (x - min(signal)) / (max(signal) - min(signal)) + float(lower) for x in signal]
1818

1919

2020
def scale_signal_with_anomalies(

0 commit comments

Comments
 (0)