Skip to content

Commit

Permalink
swap concatenation for hstack for numpy>1.21 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
huispaty committed Dec 23, 2024
1 parent 9c31c5b commit 59a2dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion partitura/io/exportmatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ def matchfile_from_alignment(
duplicates[tuple(v)] = idx
voice_overlap_note_ids = []
if len(duplicates) > 0:
duplicate_idx = np.concatenate(np.array(list(duplicates.values()))).flatten()
duplicate_idx = np.hstack(list(duplicates.values()))
voice_overlap_note_ids = list(sna[duplicate_idx]["id"])

for al_note in alignment:
Expand Down

0 comments on commit 59a2dfe

Please sign in to comment.