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

[BUG in HRTF interpolate] #70

Open
Kazusa-z opened this issue Nov 9, 2023 · 1 comment
Open

[BUG in HRTF interpolate] #70

Kazusa-z opened this issue Nov 9, 2023 · 1 comment
Assignees

Comments

@Kazusa-z
Copy link

Kazusa-z commented Nov 9, 2023

Describe the bug
Hi, I'm getting an error when trying to barycentric interpolation for HRTF files in .sofa format.

To Reproduce

import slab

ari_obj = slab.HRTF('data/CIPIC/subject_003.sofa')
i_hrtf = ari_obj.interpolate(azimuth=0, elevation=0, method='barycentric')

Actual behaviour
The output of the minimal code example. For instance, in the example above:

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (201,) + inhomogeneous part.

OS and Version:

  • OS: win
  • Version 1.1.5
@DrMarc
Copy link
Owner

DrMarc commented Nov 13, 2023

Thanks for reporting this! I will look into it this week. My first impression is that this is due to differences in how the hrtf filters are organized in different sofa files. I remember coming across this issue in a different context with one of the hrtf databases.

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

2 participants