-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add transpose_coords option to DataArray.transpose #2556
Conversation
Merge changes since fork
Merge changes since fork
Fix python 2 compatibility
Hello @phausamann! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2019-05-21 16:42:27 UTC |
As a default, I think we want If
Yes, this would be ideal. It would be fine to use |
Update documentation
Update documentation
I've updated the method to issue the warning and fixed the failing tests (which was actually a bug in my implementation).
I'm not exactly sure how this works, there are a lot of tests where the warning is issued, especially calls to |
Yes, that would probably be the right call. Or maybe even switch to We try to avoid issuing warnings in xarray's own test suite so we notice issues (e.g., deprecations in upstream packages) when they arise. This also gives us some estimate of how much turmoil a change will cause for users -- if we end up with lots of internal warnings, then users will probably notice, too. |
I've changed all the |
Merge new changes in pydata master
…om/phausamann/xarray into dataarray-transpose # Conflicts: # xarray/plot/plot.py
I've added a |
Pull upstream changes
…om/phausamann/xarray into dataarray-transpose
@shoyer is this ready to be merged? |
Hi, just popping in - perhaps rebasing on top of the master branch would help move this along? |
I just merged in master, let's see how that goes |
Merge upstream changes
…om/phausamann/xarray into dataarray-transpose
Looks like the build failures were only temporary, all the checks are passing now. I think this is good to go. |
OK, in it goes! Thanks for your patience @phausamann ! |
* upstream/master: cfgrib is now part of conda-forge (pydata#2992) Add fill_value for concat and auto_combine (pydata#2964) Remove deprecated pytest.config usages (pydata#2988) Add transpose_coords option to DataArray.transpose (pydata#2556) Fix rolling.constuct() example (pydata#2967) Implement load_dataset() and load_dataarray() (pydata#2917)
whats-new.rst
for all changes andapi.rst
for new APII've added the option
transpose_coords
toDataArray.transpose
as described in #1856. It'sFalse
by default, as it breaks a couple of tests otherwise (TestConcatDataset.test_concat
,test_apply_output_core_dimension
andtest_dot
). I'm not sure whether fixing these tests to work with the new behavior should be part of the PR.