Skip to content

Upstream failing due to Xarray dims ordering change #583

Description

@tomwhite

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:

Differences (unified diff with -expected +actual):
    @@ -1,5 +1,5 @@
     <xarray.Dataset>
    -Dimensions:                  (alphas: 5, blocks: 2, contigs: 2, outcomes: 5, samples: 50)
    -Dimensions without coordinates: alphas, blocks, contigs, outcomes, samples
    +Dimensions:                  (blocks: 2, alphas: 5, samples: 50, outcomes: 5, contigs: 2)
    +Dimensions without coordinates: blocks, alphas, samples, outcomes, contigs
     Data variables:
         regenie_base_prediction  (blocks, alphas, samples, outcomes) float64 0.33...

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamUsed when our build breaks due to upstream changes

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions