-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Avoid auto creation of indexes in concat #8872
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
TomNicholas
merged 81 commits into
pydata:main
from
TomNicholas:concat-avoid-index-auto-creation
May 8, 2024
Merged
Changes from 78 commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
22995e9
test not creating indexes on concatenation
TomNicholas 7142c9f
construct result dataset using Coordinates object with indexes passed…
TomNicholas 7fb075a
remove unnecessary overwriting of indexes
TomNicholas 285c1de
ConcatenatableArray class
TomNicholas cc24757
use ConcatenableArray in tests
TomNicholas 90a2592
Merge branch 'main' into concat-avoid-index-auto-creation
TomNicholas beb665a
add regression tests
TomNicholas 22f361d
fix by performing check
TomNicholas 55166fc
refactor assert_valid_explicit_coords and rename dims->sizes
TomNicholas 322b76e
Merge branch 'forbid_invalid_coordinates' into concat-avoid-index-aut…
TomNicholas da6692b
Revert "add regression tests"
TomNicholas 35dfb67
Revert "fix by performing check"
TomNicholas fd3de2b
Revert "refactor assert_valid_explicit_coords and rename dims->sizes"
TomNicholas 0a60172
Merge branch 'main' into concat-avoid-index-auto-creation
TomNicholas 21afbb1
fix failing test
TomNicholas 6e9ead6
possible fix for failing groupby test
TomNicholas 2534712
Revert "possible fix for failing groupby test"
TomNicholas 3e848eb
test expand_dims doesn't create Index
TomNicholas 95d453c
add option to not create 1D index in expand_dims
TomNicholas ba5627e
refactor tests to consider data variables and coordinate variables se…
TomNicholas 3719ba7
test expand_dims doesn't create Index
TomNicholas 018e74b
add option to not create 1D index in expand_dims
TomNicholas f680505
refactor tests to consider data variables and coordinate variables se…
TomNicholas f10509a
fix bug causing new test to fail
TomNicholas 8152c0a
test index auto-creation when iterable passed as new coordinate values
TomNicholas aa813cf
make test for iterable pass
TomNicholas e78de7d
added kwarg to dataarray
TomNicholas b1329cc
whatsnew
TomNicholas a9f7e0c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2ce3dec
Revert "refactor tests to consider data variables and coordinate vari…
TomNicholas 87a08b4
Revert "add option to not create 1D index in expand_dims"
TomNicholas e0c6db1
Merge branch 'expand_dims_create_1d_index' into concat-avoid-index-au…
TomNicholas 214ed7d
test that concat doesn't raise if create_1d_index=False
TomNicholas 78d2798
make test pass by passing create_1d_index down through concat
TomNicholas fc206b0
assert that an UnexpectedDataAccess error is raised when create_1d_in…
TomNicholas ce797f1
eliminate possibility of xarray internals bypassing UnexpectedDataAcc…
TomNicholas 62e750f
update tests to use private versions of assertions
TomNicholas f86c82f
create_1d_index->create_index
TomNicholas 4dd8d3c
Merge branch 'main' into expand_dims_create_1d_index
TomNicholas d5d90fd
Update doc/whats-new.rst
TomNicholas e00dbab
Merge branch 'expand_dims_create_1d_index' into concat-avoid-index-au…
TomNicholas 5bb88b8
Rename create_1d_index -> create_index
TomNicholas 1d471b1
fix ConcatenatableArray
TomNicholas 766605d
formatting
TomNicholas 971287f
Merge branch 'main' into concat-avoid-index-auto-creation
TomNicholas 10c0ed5
whatsnew
TomNicholas 51eea5d
add new create_index kwarg to overloads
TomNicholas bde9f2b
split vars into data_vars and coord_vars in one loop
TomNicholas d5241ce
avoid mypy error by using new variable name
TomNicholas 7e8f895
warn if create_index=True but no index created because dimension vari…
TomNicholas ed85446
add string marks in warning message
TomNicholas 39571ba
Merge branch 'main' into expand_dims_create_1d_index
TomNicholas 206985b
Merge branch 'expand_dims_create_1d_index' into concat-avoid-index-au…
TomNicholas 86998e4
Merge branch 'main' into concat-avoid-index-auto-creation
TomNicholas 5894724
regression test for dtype changing in to_stacked_array
TomNicholas dad9433
correct doctest
TomNicholas b235c09
Merge branch 'main' into concat-avoid-index-auto-creation
TomNicholas 36a2223
Remove outdated comment
TomNicholas e17c13f
test we can skip creation of indexes during shape promotion
TomNicholas e8fa857
make shape promotion test pass
TomNicholas 648d5bc
Merge branch 'concat-avoid-index-auto-creation' of https://github.com…
TomNicholas deb292c
Merge branch 'main' into concat-avoid-index-auto-creation
TomNicholas 6dd57a9
point to issue in whatsnew
TomNicholas b0e3612
don't create dimension coordinates just to drop them at the end
TomNicholas b2f06a0
Merge branch 'main' into concat-avoid-index-auto-creation
TomNicholas ff70fc7
Remove ToDo about not using Coordinates object to pass indexes
TomNicholas 2f97a5c
get rid of unlabeled_dims variable entirely
TomNicholas 6d825e5
move ConcatenatableArray and similar to new file
TomNicholas b88b5a6
formatting nit
TomNicholas 30c7408
Merge branch 'concat-avoid-index-auto-creation' of https://github.com…
TomNicholas b243150
renamed create_index -> create_index_for_new_dim in concat
TomNicholas 9e9e168
renamed create_index -> create_index_for_new_dim in expand_dims
TomNicholas dca2fb9
fix incorrect arg name
TomNicholas c979672
add example to docstring
TomNicholas ac27ce0
add example of using new kwarg to docstring of expand_dims
TomNicholas d73ac48
add example of using new kwarg to docstring of concat
TomNicholas 9ebbb33
Merge branch 'main' into concat-avoid-index-auto-creation
TomNicholas d1b656d
re-nit the nit
TomNicholas ac998e9
more instances of the nit
keewis 0849b94
fix docstring doctest formatting nit
TomNicholas 25764ca
Merge branch 'concat-avoid-index-auto-creation' of https://github.com…
TomNicholas 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
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.