-
Notifications
You must be signed in to change notification settings - Fork 47
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
Error in add_shapes()
function
#524
Comments
Hi @GuoshengMa, thanks for reaching out. The error above is expected and of easy fix. In the latest release we refactored the IO system to separate the moment in which new elements are added in memory and the moment when they are saved to disk. To add the new element in-memory you can now simply do
Last comment, I see you are using Windows and Xenium data; some users reported problems with Xenium and Steinbock data (and if the element name contain the character |
Great! It works for me and below is my code: from spatialdata.models import ShapesModel
visium_landmarks = ShapesModel.parse(
np.array(visium_sdata['visium_temp_points'].drop('z', axis=1)), geometry=0, radius=1000
)
visium_sdata["visium_temp_shape"] = visium_landmarks |
Hi @LucaMarconato ! A few days ago, following the instructions in the Use landmark annotations to align multiple -omics layers section, I successfully aligned the layers using data from visium and xenium. However, today I encountered an error when running the
add_shapes()
function following the same code.Here is my code:
And here is the error:
In these past few days, I encountered another error while using the
polygon_query()
function and resolved it based on the suggestions provided in #474. During this process, I updated spatialdata usingpip install git+https://github.com/scverse/spatialdata
. I'm not sure if this operation caused the error mentioned above.The text was updated successfully, but these errors were encountered: