You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But still throws the same error. Would love to know if I am doing something wrong here.
shape_spatialdata = ShapesModel.parse(data = gdf, transformations={"global": Identity()})
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/amanuky/opt/anaconda3/envs/scverse/lib/python3.10/functools.py", line 925, in _method
method = self.dispatcher.dispatch(args[0].__class__)
IndexError: tuple index out of range
This is the version pulled from main branch. Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hi @Artur-man, here the problem is that parse() uses functools.singledispatch, so the first argument should be specified without the prefix data=. We will be making a new release next week that will also add a notebook on the shapes model.
I'll make sure that the notebook also explain this.
Minor note, we don't interact with the geopandas part that uses the crs, so the line , crs='epsg:4326' should have no effect.
Dear all,
I have been playing around with spatialdata.models and was trying to build a custom ShapesModel object with Polygon geometry.
I have started with a set of Polygon points, and kept getting IndexError, but then I simplified the example as in here:
Here is how the GeoDataFrame looks like:
But still throws the same error. Would love to know if I am doing something wrong here.
This is the version pulled from main branch. Thanks in advance.
The text was updated successfully, but these errors were encountered: