Skip to content

Commit 9075b21

Browse files
author
arch
committed
fix empty score
1 parent 7082dc0 commit 9075b21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

funscript_editor/algorithms/signalprocessing.py

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

1920

0 commit comments

Comments
 (0)