You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importpyroomacousticsasprafrompyroomacoustics.directivitiesimportMeasuredDirectivityFile, Rotation3Dfrompyroomacoustics.datasetsimportSOFADatabasefs=48000# Initialize the SOFA databasedb=SOFADatabase()
spkr_dirs=MeasuredDirectivityFile('LSPs_HATS_GuitarCabinets_Akustikmessplatz', fs=fs)
rot_54_73=Rotation3D([73, 54], "yz", degrees=True)
dir_spkr=spkr_dirs.get_source_directivity('Yamaha_DXR8', orientation=rot_54_73)
# Create roomroom_dim= [14.0, 12.0, 6.0]
room=pra.ShoeBox(room_dim, fs=fs)
room.add_source([3.0, 2.0, 1.7], directivity=dir_spkr)
# This line raises the errorroom.plot()
It also fails with plot_directivity=True
Environment
PyRoomAcoustics version: 0.8.3
Python version: 3.12.5
Operating System: MacOS 14.4
The text was updated successfully, but these errors were encountered:
timbs85
changed the title
Room plotting breaks when trying to visualise directional sources
Room plotting breaks when trying to visualise measured directional sources
Jan 27, 2025
When attempting to plot a room containing a measured directional source using
room.plot()
, the following error is raised:Minimal Reproducible Example
It also fails with
plot_directivity=True
Environment
The text was updated successfully, but these errors were encountered: