Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^1.24.0",
"pdfjs-dist": "6.1.200",
"pdfjs-dist": "^6.2.108",
"react": "^19.2.4",
"react-dom": "^19.2.7",
"sonner": "^2.0.7",
Expand Down
46 changes: 10 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions services/analysis-engine/tests/test_hits.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from __future__ import annotations

from unittest.mock import patch

import numpy as np
from numpy.typing import NDArray

Expand Down Expand Up @@ -138,3 +140,11 @@ def test_detect_shared_hits_safe_failure_inputs() -> None:
assert detect_shared_hits({"vocals": _tone(1.0)}, 0) == []
# Non-numeric array must not raise.
assert detect_shared_hits({"vocals": np.array(["boom"])}, SR) == [] # type: ignore[dict-item]


def test_detect_shared_hits_catches_unexpected_exceptions() -> None:
"""Unexpected exceptions during shared-hit detection are caught and yield []."""
with patch(
"bandscope_analysis.temporal.hits._detect_shared_hits", side_effect=RuntimeError("Boom")
):
assert detect_shared_hits({"vocals": _tone(1.0)}, SR) == []
Loading