-
Notifications
You must be signed in to change notification settings - Fork 32
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
Upstream failing due to Xarray dims ordering change #583
Comments
From pydata/xarray#4753:
Could we use |
I think that comment is out of date, since the repr was changed in the end. |
🤔 this reminds me of discussions around https://github.com/pystatgen/sgkit/issues/43. I suppose we might want some kind of schema-aware comparison approach within the library? |
@eric-czech suggests using http://xarray.pydata.org/en/stable/generated/xarray.Dataset.transpose.html to enforce dimension order. |
I don't think transpose is what we want since it transposes the underlying arrays, not the order the dimensions are listed in the dataset/ |
Xarray no longer sorts dimension by name (pydata/xarray#4753). This affects the display representation, which is causing some upstream tests to fail. Example failure:
I'm not sure how to fix this so that the tests work against both Xarray 0.18.2 and the main branch.
The
test_gwas_linear_regression__validate_statistics
test is also failing due to the same change, but the error is a numerical mismatch, which suggests the dimensions are somehow getting mixed up.The text was updated successfully, but these errors were encountered: