Skip to content

Commit 67081d7

Browse files
authored
Adding abstract GridDF (#32)
* adding normalization to mixin * adding GridDF * adding properties to docstrings * add numpy's warning, remove type_checking (handled in get_neighborhood)
1 parent e5f9802 commit 67081d7

File tree

4 files changed

+461
-4
lines changed

4 files changed

+461
-4
lines changed

mesa_frames/abstract/mixin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ def _df_get_masked_df(
198198
@abstractmethod
199199
def _df_iterator(self, df: DataFrame) -> Iterator[dict[str, Any]]: ...
200200

201+
@abstractmethod
202+
def _df_norm(self, df: DataFrame) -> DataFrame: ...
203+
201204
@abstractmethod
202205
def _df_remove(
203206
self, df: DataFrame, ids: Sequence[Any], index_col: str | None = None

0 commit comments

Comments
 (0)