Skip to content

update project dependencies to work with python 3.14#38

Merged
yiitozer merged 2 commits into
groupmm:masterfrom
Curucail:update-dependencies-py314
May 12, 2026
Merged

update project dependencies to work with python 3.14#38
yiitozer merged 2 commits into
groupmm:masterfrom
Curucail:update-dependencies-py314

Conversation

@Curucail

Copy link
Copy Markdown
Contributor

No description provided.

@stefan-balke stefan-balke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No breaking changes. LGTM

@stefan-balke

Copy link
Copy Markdown
Contributor

pretty_midi should be fixed to > 0.2.11 otherwise it uses np.int

@stefan-balke

Copy link
Copy Markdown
Contributor

pretty_midi should be fixed to > 0.2.11 otherwise it uses np.int

okay, this is already fixed in this PR

@stefan-balke stefan-balke mentioned this pull request May 9, 2026
Comment thread synctoolbox/dtw/utils.py
Comment on lines +235 to +236
anchor_indices = np.flatnonzero((a[0] == warping_path[0, :]) & (a[1] == warping_path[1, :]))
indices[k] = anchor_indices[0]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add this check?

        anchor_indices = np.flatnonzero((a[0] == warping_path[0, :]) & (a[1] == warping_path[1, :]))
        if anchor_indices.size == 0:
            raise ValueError(f"Anchor {a.tolist()} not found in warping path")
        indices[k] = anchor_indices[0]

or probably that case would raise IndexError at anchor_indices[0]

Comment thread synctoolbox/dtw/utils.py
@@ -228,11 +228,12 @@ def find_anchor_indices_in_warping_path(warping_path: np.ndarray,
indices : np.ndarray [shape=(2, M)]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chatGPT says the return type is wrong

-    indices : np.ndarray [shape=(2, M)]
+    indices : np.ndarray [shape=(M,)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, true. Double-checked.
image

@yiitozer yiitozer self-assigned this May 11, 2026
@yiitozer yiitozer merged commit 2e5f3f3 into groupmm:master May 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants