Skip to content

Commit

Permalink
correct tables
Browse files Browse the repository at this point in the history
  • Loading branch information
melonora committed Dec 14, 2024
1 parent eb1d713 commit e2895fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/tutorials/notebooks
Submodule notebooks updated 157 files
5 changes: 3 additions & 2 deletions src/spatialdata/_core/spatialdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1656,11 +1656,12 @@ def tables(self) -> Tables:
return self._tables

@tables.setter
def tables(self, shapes: dict[str, GeoDataFrame]) -> None:
def tables(self, tables: dict[str, AnnData]) -> None:
"""Set tables."""
self._shared_keys = self._shared_keys - set(self._tables.keys())
self._tables = Tables(shared_keys=self._shared_keys)
for k, v in shapes.items():
for k, v in tables.items():
TableModel().validate(v)
self._tables[k] = v

@property
Expand Down

0 comments on commit e2895fc

Please sign in to comment.