-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
array api-related upstream-dev failures #8854
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
Changes from all commits
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
e066a6c
replace the use of `numpy.array_api` with `array_api_strict`
keewis 0c14425
replace `numpy.array_api` with `array_api_strict` in the tests
keewis c76adc9
replace the use of the removed `nxp` with just plain `numpy`
keewis 57cd907
directly pass the `numpy` dtype
keewis 3a7552f
replace `dtype.type` with `type(dtype)` for `isnull`
keewis 4fa8767
use a new function to compare dtypes
keewis f708b50
Merge branch 'main' into numpy2-array-api
keewis 4063e11
use `array_api_strict`'s version of `int64`
keewis fdd6c80
use `array_api_strict`'s dtypes when interacting with its `Array` class
keewis 3ef997a
Revert the (unintentional) switch to `mamba` [skip-ci]
keewis 2e0211c
use the array API in `result_type`
keewis 73da2ba
skip modifying the casting rules if no numpy dtype is involved
keewis 63c0f6c
don't use isdtype for modules that don't have it
keewis 0326ae3
allow mixing numpy arrays with others
keewis b1e259d
use the array api to implement `nbytes`
keewis 9d94dc1
refactor `isdtype`
keewis 16e2403
refactor `isdtype` to be a more general dtype checking mechanism
keewis 79bc7f5
replace all `dtype.kind` calls with `dtypes.isdtype`
keewis 3cb20ce
use the proper dtype kind
keewis 1f0d0f3
use `_get_data_namespace` to get the array api namespace
keewis 40cd9c9
Merge branch 'main' into numpy2-array-api
keewis 7e952fd
explicitly handle `bool` when determining the item size
keewis d0ab11d
prefer `itemsize` over the array API's version
keewis 108d40f
add `array-api-strict` as a test dep to the bare-minimum environment
keewis da6fff6
ignore the redefinition of `nxp`
keewis 423b7ea
move the array api duck array check into a separate test
keewis 84f0c95
remove `extract_dtype`
keewis aad9386
Merge branch 'main' into numpy2-array-api
keewis 1c424b9
Merge branch 'main' into numpy2-array-api
keewis 7a929c1
try comparing working around extension dtypes
keewis 45de4eb
change the `nbytes` test to more clearly communicate the intention
keewis aa3dea8
Merge branch 'main' into numpy2-array-api
keewis 52c61ab
Merge branch 'main' into numpy2-array-api
keewis 24f26c2
Merge branch 'main' into numpy2-array-api
keewis 73372da
Merge branch 'main' into numpy2-array-api
keewis a82ec8b
remove the deprecated dtype alias `"a"`
keewis 152b983
refactor to have different code paths for numpy dtypes and others
keewis 1977ad5
Merge branch 'main' into numpy2-array-api
keewis d9426ec
use `isdtype` for all other dtype checks in `xarray.core.dtypes`
keewis a43c1bf
use the proper kinds
keewis 0f4d7be
remove the now unused "always tuple" branch in `split_numpy_kinds`
keewis 7e95622
raise an error on invalid / unknown kinds
keewis a088e11
add tests for `isdtype`
keewis 26bd6a1
pass in the iterable version of `kind`
keewis 833f54f
remove the array api check
keewis 75b3b6d
remove the unused `requires_pandas_version_two`
keewis 3c28cb7
Merge branch 'main' into numpy2-array-api
dcherian fb59d88
add `bool` to the dummy namespace
keewis d18e23c
Merge branch 'main' into numpy2-array-api
keewis 5c34163
actual make the extension array dtype test check something
keewis d72a621
actually make the extension array dtype check work
keewis d9f2fb5
adapt the name of the wrapped array
keewis 810cf61
remove the dtype for those examples that use the default dtype
keewis 3e87ea9
filter out the warning raised by importing `numpy.array_api`
keewis 846b1cb
move the `pandas` isdtype check to a different function
keewis a59edd3
mention that we can remove `numpy_isdtype` once we require `numpy>=2.0`
keewis 911206b
use an enum instead
keewis 14c5a56
make `isdtype` simpler
keewis 58d6b8b
comment on the empty pandas_isdtype
keewis a9c7a21
drop `pandas_isdtype` in favor of a simple `return `False`
keewis 62eec48
move the dtype kind verification to `numpy_isdtype`
keewis 007e6c9
fall back to `numpy.isdtype` if `xp` is not passed
keewis c5f4262
move `numpy_isdtype` to `npcompat`
keewis 5641e06
Merge branch 'main' into numpy2-array-api
keewis 0329951
typing
keewis 63046d0
fix a type comment
keewis 2e88691
additional code comments
keewis 499e553
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 63bacb4
more typing
keewis fca4b3c
raise a `TypeError` as `numpy.isdtype` does
keewis 7979d44
also allow tuples of strings as kind
keewis 513104b
invert the condition
keewis 6dea06e
final fix, hopefully
keewis 48b2e2d
next attempt
keewis da27a1b
Merge branch 'main' into numpy2-array-api
keewis eb9dece
raise a `ValueError` for unknown dtype kinds
keewis 7302060
split out the tests we expect to raise into a separate function
keewis 8c798d4
Merge branch 'main' into numpy2-array-api
keewis c8ebdc7
add another expected failing test
keewis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.