Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: operands could not be broadcast together with shapes (2709,96) (2500,1) (2709,96) #339

Open
Jinbo-Hu opened this issue Mar 21, 2024 · 0 comments

Comments

@Jinbo-Hu
Copy link

I utilized the following hyper-parameters, but got ValueError: operands could not be broadcast together with shapes (2709,96) (2500,1) (2709,96) .
Why does the error happen?

import pyroomacoustics as pra
import numpy as np

mic_pos = np.array([8.06855248, 2.797363, 1.74566051]) + \
    np.array([[ 0.02432757,  0.02432757,  0.02409021],
       [ 0.02432757, -0.02432757, -0.02409021],
       [-0.02432757,  0.02432757, -0.02409021],
       [-0.02432757, -0.02432757,  0.02409021]])
src_pos = [5.02121447, 4.03800758, 2.02739953]
room_dim = [15.52462282, 5.38237875,  3.35880829]

e, max_o = pra.inverse_sabine(rt60=1.99, room_dim=room_dim)
room = pra.ShoeBox(room_dim, fs=24000, max_order=max_o, 
                   materials=pra.Material(e), ray_tracing=True)
room.add_microphone_array(mic_pos.T)
room.add_source(src_pos)
room.compute_rir()
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

No branches or pull requests

1 participant