Skip to content

Commit 2445eb7

Browse files
Fix bug unserializable attrs new pyarrow (#1003)
* fix bug unserializable attrs new pyarrow * relax pyarrow
1 parent 28e4975 commit 2445eb7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies = [
3636
"ome_zarr>=0.12.2",
3737
"pandas",
3838
"pooch",
39-
"pyarrow<22.0.0", # https://github.com/scverse/spatialdata/issues/1000
39+
"pyarrow",
4040
"rich",
4141
"setuptools",
4242
"shapely>=2.0.1",

src/spatialdata/_io/io_points.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ def write_points(
8080
c = c.cat.as_known()
8181
points[column_name] = c
8282

83-
points.to_parquet(path)
83+
points_without_transform = points.copy()
84+
del points_without_transform.attrs["transform"]
85+
points_without_transform.to_parquet(path)
8486

8587
attrs = element_format.attrs_to_dict(points.attrs)
8688
attrs["version"] = element_format.spatialdata_format_version

0 commit comments

Comments
 (0)