You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* test not creating indexes on concatenation
* construct result dataset using Coordinates object with indexes passed explicitly
* remove unnecessary overwriting of indexes
* ConcatenatableArray class
* use ConcatenableArray in tests
* add regression tests
* fix by performing check
* refactor assert_valid_explicit_coords and rename dims->sizes
* Revert "add regression tests"
This reverts commit beb665a.
* Revert "fix by performing check"
This reverts commit 22f361d.
* Revert "refactor assert_valid_explicit_coords and rename dims->sizes"
This reverts commit 55166fc.
* fix failing test
* possible fix for failing groupby test
* Revert "possible fix for failing groupby test"
This reverts commit 6e9ead6.
* test expand_dims doesn't create Index
* add option to not create 1D index in expand_dims
* refactor tests to consider data variables and coordinate variables separately
* test expand_dims doesn't create Index
* add option to not create 1D index in expand_dims
* refactor tests to consider data variables and coordinate variables separately
* fix bug causing new test to fail
* test index auto-creation when iterable passed as new coordinate values
* make test for iterable pass
* added kwarg to dataarray
* whatsnew
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Revert "refactor tests to consider data variables and coordinate variables separately"
This reverts commit ba5627e.
* Revert "add option to not create 1D index in expand_dims"
This reverts commit 95d453c.
* test that concat doesn't raise if create_1d_index=False
* make test pass by passing create_1d_index down through concat
* assert that an UnexpectedDataAccess error is raised when create_1d_index=True
* eliminate possibility of xarray internals bypassing UnexpectedDataAccess error by accessing .array
* update tests to use private versions of assertions
* create_1d_index->create_index
* Update doc/whats-new.rst
Co-authored-by: Deepak Cherian <[email protected]>
* Rename create_1d_index -> create_index
* fix ConcatenatableArray
* formatting
* whatsnew
* add new create_index kwarg to overloads
* split vars into data_vars and coord_vars in one loop
* avoid mypy error by using new variable name
* warn if create_index=True but no index created because dimension variable was a data var not a coord
* add string marks in warning message
* regression test for dtype changing in to_stacked_array
* correct doctest
* Remove outdated comment
* test we can skip creation of indexes during shape promotion
* make shape promotion test pass
* point to issue in whatsnew
* don't create dimension coordinates just to drop them at the end
* Remove ToDo about not using Coordinates object to pass indexes
Co-authored-by: Deepak Cherian <[email protected]>
* get rid of unlabeled_dims variable entirely
* move ConcatenatableArray and similar to new file
* formatting nit
Co-authored-by: Justus Magin <[email protected]>
* renamed create_index -> create_index_for_new_dim in concat
* renamed create_index -> create_index_for_new_dim in expand_dims
* fix incorrect arg name
* add example to docstring
* add example of using new kwarg to docstring of expand_dims
* add example of using new kwarg to docstring of concat
* re-nit the nit
Co-authored-by: Justus Magin <[email protected]>
* more instances of the nit
* fix docstring doctest formatting nit
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Deepak Cherian <[email protected]>
Co-authored-by: Justus Magin <[email protected]>
Copy file name to clipboardExpand all lines: doc/whats-new.rst
+4-1
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,10 @@ New Features
32
32
- :py:func:`testing.assert_allclose`/:py:func:`testing.assert_equal` now accept a new argument `check_dims="transpose"`, controlling whether a transposed array is considered equal. (:issue:`5733`, :pull:`8991`)
33
33
By `Ignacio Martinez Vazquez <https://github.com/ignamv>`_.
34
34
- Added the option to avoid automatically creating 1D pandas indexes in :py:meth:`Dataset.expand_dims()`, by passing the new kwarg
35
-
`create_index=False`. (:pull:`8960`)
35
+
`create_index_for_new_dim=False`. (:pull:`8960`)
36
+
By `Tom Nicholas <https://github.com/TomNicholas>`_.
37
+
- Avoid automatically re-creating 1D pandas indexes in :py:func:`concat()`. Also added option to avoid creating 1D indexes for
38
+
new dimension coordinates by passing the new kwarg `create_index_for_new_dim=False`. (:issue:`8871`, :pull:`8872`)
36
39
By `Tom Nicholas <https://github.com/TomNicholas>`_.
0 commit comments