Skip to content

fix combine_by_coords#267

Merged
rabernat merged 3 commits intoMITgcm:masterfrom
AaronDavidSchneider:fix_swap
May 28, 2021
Merged

fix combine_by_coords#267
rabernat merged 3 commits intoMITgcm:masterfrom
AaronDavidSchneider:fix_swap

Conversation

@AaronDavidSchneider
Copy link
Copy Markdown
Contributor

This PR fixes the combine_by_coors call to fix _swap_dims.
Closes #265

@AaronDavidSchneider
Copy link
Copy Markdown
Contributor Author

I think the tests fail due to maintainance of the ecco portal (#266). Unrelated to this PR.

@rabernat
Copy link
Copy Markdown
Member

Fantastic! Thanks so much @AaronDavidSchneider!

@rabernat
Copy link
Copy Markdown
Member

When I look at the test logs, I still see failing calls to swap_dims in the xarray-master setup: https://github.com/MITgcm/xmitgcm/pull/267/checks?check_run_id=2645589137

Any idea what is going on there?

@AaronDavidSchneider
Copy link
Copy Markdown
Contributor Author

Oh 😧
I will debug again and try to see where the problem originates from.

@AaronDavidSchneider
Copy link
Copy Markdown
Contributor Author

AaronDavidSchneider commented May 24, 2021

expected_dims and ds.dims are in different order. Don't know how this happened. I fixed the xarray master test by changing the test to comparing sets.
What do you think @rabernat?

BTW: Could you take a look at #246? Should be ready. Thank you and sorry for being so german about it :D

@rabernat
Copy link
Copy Markdown
Member

expected_dims and ds.dims are in different order.

I think we can live with this for now.

@rabernat rabernat merged commit c793ecc into MITgcm:master May 28, 2021
@AaronDavidSchneider AaronDavidSchneider deleted the fix_swap branch May 28, 2021 13:20
fraserwg pushed a commit to fraserwg/xmitgcm that referenced this pull request Nov 23, 2021
* fix combine_by_coords

* change to new only for versions newer than previous xarray version

* fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

swap_dims doesn't work with xarray 0.18

2 participants