Skip to content

Fix infinite recursion when calling np.fix #10248

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

Merged
merged 13 commits into from
Apr 28, 2025
Merged

Conversation

gcaria
Copy link
Contributor

@gcaria gcaria commented Apr 24, 2025

@gcaria
Copy link
Contributor Author

gcaria commented Apr 24, 2025

These are the relevant lines in the numpy code:

https://github.com/numpy/numpy/blob/main/numpy/lib/_ufunclike_impl.py#L60-L61

@max-sixty
Copy link
Collaborator

could we add a small test?

@gcaria
Copy link
Contributor Author

gcaria commented Apr 26, 2025

Added test @max-sixty . I'm looking through the other tests failure

@max-sixty
Copy link
Collaborator

the test failures are likely unrelated — could we try merging in main?

(fwiw I dalso don't see a test here — did it push correctly?)

@dcherian dcherian enabled auto-merge (squash) April 28, 2025 16:44
@dcherian dcherian merged commit 0436b3b into pydata:main Apr 28, 2025
31 checks passed
dcherian added a commit to dcherian/xarray that referenced this pull request Apr 29, 2025
* main:
  Fix convert calendar on non-temporal data in datasets (pydata#10268)
  BinGrouper: reduce indirection (pydata#10270)
  Fix reduction by subset of grouper dimensions (pydata#10258)
  Shorten text repr for ``DataTree`` (pydata#10139)
  Fix benchmarks runners (pydata#10265)
  Fix infinite recursion when calling `np.fix` (pydata#10248)
  BinGrouper: Support setting labels when provided with IntervalIndex (pydata#10259)
  Avoid stacking when grouping by chunked array (pydata#10254)
  Improve alignment checks (pydata#10251)
  Update how-to-add-new-backend.rst (pydata#10240)
  Support extension array indexes (pydata#9671)
  Switch documentation to pydata-sphinx-theme (pydata#8708)
  Bump codecov/codecov-action from 5.4.0 to 5.4.2 in the actions group (pydata#10239)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

np.fix on a data array produces RecursionError: maximum recursion depth exceeded
3 participants