[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
cd50f9e51d
commit
18673a562a
682 changed files with 25903 additions and 8390 deletions
|
|
@ -12,5 +12,7 @@ def downsample(values: list[float], target_count: int) -> list[float]:
|
|||
return []
|
||||
if target_count == 1:
|
||||
return [values[-1]]
|
||||
indices = [round(i * (len(values) - 1) / (target_count - 1)) for i in range(target_count)]
|
||||
indices = [
|
||||
round(i * (len(values) - 1) / (target_count - 1)) for i in range(target_count)
|
||||
]
|
||||
return [values[i] for i in indices]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue