-
Notifications
You must be signed in to change notification settings - Fork 8
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
adjust to xarray datatree #94
Conversation
@thewtex any idea regarding pixi here? |
I did install with pixi but updating the lockfile there is the issue of xarray requiring python version being between 3.10 and 3.13.. After that there are a few more dependencies that need to be solved. Question are we ok with dropping 3.9 support at this point @LucaMarconato @thewtex ? |
If everyone is ok with dropping 3.9 support then I think we would be good to go. I am only implementing some small changes in napari-spatialdata still, but in the main spatialdata repo things seem to be ok. |
One thing to note is that methods like |
@melonora awesome, thanks for the updates!! Dropping 3.9 would be fine with me. Why does 3.13 not work? Could the CI config please be updated to reflect the supported Python versions? |
Just checked again, yesterday I perhaps did something different with the constraints so it started including release candidates which caused it to fail. However, retrying today everything seems A-ok so must have been doing something different but I don't remember. Sure updating CI config now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯 🎇 thank you @melonora !
I did not see a changelog so I am not certain for release whether that is manually written or automatically handled. Anything still required before merging and making the release? |
Release notes are generated from Git logs. I think we should make a major bump in the version add a special note regarding the datatree bump. |
Glad you got this working with the new
Did we miss these from the migration guide? Specifically that |
@TomNicholas , sorry for not getting back to you sooner. Previously the keyword argument to Same for
This was a bit confusing as appearently you still have the method |
closes #93
Xarray has archived the datatree repository, the new import
from xarray import datatree
andfrom_dict
only accepts positional arguments from now on. Another change is thatfrom_dict
does not acceptDataArray
as values anymore, but onlyxr.Dataset
. With this PR and adjustment inSpatialData
scverse/spatialdata#752, it seems to work.This PR is not meant to be merged yet as I am still checking on the changes in
SpatialData
. I currently just only have a windows machine which does not allow for some tests.