Skip to content

Conversation

@ahms5
Copy link
Member

@ahms5 ahms5 commented Jan 17, 2026

s = samplings.sph_gaussian(sh_order=121) fails right now, because the phi angle was not calculated correctly due to numerical issues with np.arange (it returned phi=0 twice). So I replaced it with np.linspace, so that it always returns the correct phi angles. I also added a test to make sure it woudnt fail again.

this is the same pr as here pyfar/pyfar#887

@ahms5 ahms5 self-assigned this Jan 17, 2026
@ahms5 ahms5 added bug Something isn't working samplings labels Jan 17, 2026
@ahms5 ahms5 added this to the v1.0.0 milestone Jan 17, 2026
@ahms5 ahms5 requested review from a team, f-brinkmann, hoyer-a, mberz, sikersten and tluebeck January 17, 2026 10:53
@ahms5 ahms5 moved this from Backlog to Require review in Weekly Planning Jan 17, 2026
@github-project-automation github-project-automation bot moved this from Require review to Reviewer Approved in Weekly Planning Jan 17, 2026
@mberz mberz merged commit 1c01b10 into develop Jan 21, 2026
4 of 7 checks passed
@github-project-automation github-project-automation bot moved this from Reviewer Approved to Done in Weekly Planning Jan 21, 2026
@mberz mberz deleted the bug/fix_gaussian_sampling branch January 21, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working samplings

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants