Skip to content

Commit

Permalink
fix tables
Browse files Browse the repository at this point in the history
  • Loading branch information
melonora committed Dec 14, 2024
1 parent eb1d713 commit 71533ba
Showing 1 changed file with 3 additions and 2 deletions.
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 71533ba

Please sign in to comment.