python-librosa/csr_matrix-attr-H.patch
Markéta Machová 2cac8b1da2 - Switch ffmpeg-5 with ffmpeg-4 BuildRequires: python-librosa is
the last package depending on ffmepeg-5, and it's only used for
  testsuite, so using ffmepeg-4 is fine, and will allow us to drop
  ffmpeg-5 from distro.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=55
2025-01-28 10:36:09 +00:00

21 lines
635 B
Diff

From 44baef3d4e748135575e9b688894c01b37a3685b Mon Sep 17 00:00:00 2001
From: Brian McFee <brian.mcfee@nyu.edu>
Date: Wed, 26 Jun 2024 10:08:45 -0400
Subject: [PATCH] fix #1849
---
librosa/core/constantq.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/librosa/core/constantq.py
+++ b/librosa/core/constantq.py
@@ -707,7 +707,7 @@ def icqt(
)
# Transpose the basis
- inv_basis = fft_basis.H.todense()
+ inv_basis = fft_basis.conjugate().T.todense()
# Compute each filter's frequency-domain power
freq_power = 1 / np.sum(util.abs2(np.asarray(inv_basis)), axis=0)