From 70e3c964e179f9219884435eb48a1b6c8dcd95b5 Mon Sep 17 00:00:00 2001 From: Amirhossein Naghsh Nilchi Date: Thu, 26 Feb 2026 15:42:18 +0100 Subject: [PATCH] fix codex reader table --- src/spatialdata_io/readers/codex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spatialdata_io/readers/codex.py b/src/spatialdata_io/readers/codex.py index fb0a65dd..38da357f 100644 --- a/src/spatialdata_io/readers/codex.py +++ b/src/spatialdata_io/readers/codex.py @@ -85,10 +85,10 @@ def codex( rgb=None, ) } - sdata = SpatialData(images=images, shapes={str(region): shapes}, table=table) + sdata = SpatialData(images=images, shapes={str(region): shapes}, tables={"table": table}) else: logger.warning("Cannot find .tif file. Will build spatialdata with shapes and table only.") - sdata = SpatialData(shapes={str(region): shapes}, table=table) + sdata = SpatialData(shapes={str(region): shapes}, tables={"table": table}) return _set_reader_metadata(sdata, "codex")