-
Notifications
You must be signed in to change notification settings - Fork 2
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
Clarify disk-backed operations and need for assignment #90
Comments
Hi @berombau , I am aware of this behaviour, and it could probably be improved, but not sure what the best way to fix it. The root cause of the issue is that if we write a spatial element of a spatialdata object, the sdata object is not updated inplace. The dask task graph is executed, but
if we now do This is why I always do
in the This is also why the The reason why you do not see labels plotted when doing
when
There are some possible solitons:
|
Thanks for the clear explanation! For the solutions:
|
Right now there are some subtle issues with in-memory or disk-backed operations:
In-memory segmentation works as expected:
Disk-backed segmentation like this does not appear to work when plotting:
But they do work when writing after segmentation:
or reassigning the sdata variable:
Is this reproducible @ArneDefauw? We've encountered this need for reassignment before. It's an inconsistency and a footgun for users we should try to fix. I think it's nicer for
sdata.write
to not have an influence and not to do assignment withsdata =
everywhere. But is this a limitation we can't fix or something to fix in the segment function, the plotting function or SpatialData?The text was updated successfully, but these errors were encountered: