Skip to content

Remove deprecated assignment to .shape - #641

Merged
mgeier merged 3 commits into
spatialaudio:masterfrom
mgeier:shape-deprecation
Aug 29, 2026
Merged

Remove deprecated assignment to .shape#641
mgeier merged 3 commits into
spatialaudio:masterfrom
mgeier:shape-deprecation

Conversation

@mgeier

@mgeier mgeier commented Aug 22, 2026

Copy link
Copy Markdown
Member

Fixes #638.

I intentionally didn't use np.reshape(), even though it was suggested in the NumPy warning message. The function call is much slower than the eponymous method call, but both of them change the returned array's .base attribute, which then points to a temporary array. I would like it to, as it has done before, point directly to the CFFI backend buffer.

@mgeier mgeier mentioned this pull request Aug 22, 2026
@mgeier
mgeier merged commit 626fcb0 into spatialaudio:master Aug 29, 2026
15 checks passed
@mgeier
mgeier deleted the shape-deprecation branch August 29, 2026 06:36
注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

NumPy DeprecationWarning

1 participant