[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-07-21 23:18:45 +00:00
commit 18673a562a
682 changed files with 25903 additions and 8390 deletions

View file

@ -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]