Skip to content

Conversation

@mberz
Copy link
Member

@mberz mberz commented Sep 16, 2025

Workaround for the bug encountered in #143

We can merge this in case the original issue does not get resolved in time

Originally posted by @JohKem the GH issue on the bug:
scipy/scipy#23101
Comment on lines 398 to 400
# squeeze required because the legendre function introduced in scipy 1.15
# returns a 2D array, whereas the previous function `lpmn` returned a 1D
# array
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# squeeze required because the legendre function introduced in scipy 1.15
# returns a 2D array, whereas the previous function `lpmn` returned a 1D
# array
# squeeze required because the legendre function introduced in scipy 1.15
# returns a 2D array, whereas the previous function `lpmn` returned a 1D
# array

@sikersten
Copy link
Member

@mberz , @f-brinkmann: This PR and #143 address the same issue. #143 proposes a different solution, and adds tests. Should both PRs be merged or can one be closed?

@ahms5
Copy link
Member

ahms5 commented Sep 18, 2025

@sikersten
#143 depends on scipy's fix, if they dont fix before our release, we can merge this workaround here.

@mberz
Copy link
Member Author

mberz commented Sep 18, 2025

This PR would merge into #143

Copy link
Member

@f-brinkmann f-brinkmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx. Also note that #143 is already merged into this. So we know that the workaround is working.

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

Successfully merging this pull request may close these issues.

4 participants