Repository navigation
bugfix/use-xarray-existing-dims - #243
Open
chenyangsu wants to merge 2 commits into
Open
chenyangsu wants to merge 2 commits into
chenyangsu wants to merge 2 commits into
Conversation
chenyangsu
requested review from
BrianWhitneyAI,
aswallace,
kmitcham,
pgarrison,
saeliddp,
smishra3 and
toloudis
November 29, 2026 22:58
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to Relevant Issue
No existing issue.
Description of Changes
Passing an
xr.DataArraywith non-default dimensions toArrayLikeReaderorBioImagestill appends_guess_dim_order(shape)(ordim_order) to_scene_dims_list, causingCoordinateValidationErrorondims=["T", "Z", "Y", "X"](tries to attach coordinateC),dims=["Z", "C", "Y", "X"]with shape(4, 3, 5, 6)(generates 4 channel names for a length-3Caxis), anddims=["C", "Y", "X"]withoutcoords["C"].Record
this_scene.dimsdirectly in_scene_dims_listwhen anxr.DataArrayalready has non-default dims, matching theArrayLikeReaderdocstring thatdim_orderis ignored for labeledDataArrayinputs. Happy to keep validatingdim_orderlength when passed explicitly if you prefer.Testing:
pytest-> 119 passed, 10 xfailed (4 new regression tests failed onupstream/main);ruff check bioioandruff format --check bioiopassed.