Skip to content

Commit

Permalink
Adding abstract GridDF (#32)
Browse files Browse the repository at this point in the history
* adding normalization to mixin

* adding GridDF

* adding properties to docstrings

* add numpy's warning, remove type_checking (handled in get_neighborhood)
  • Loading branch information
adamamer20 authored Jul 24, 2024
1 parent e5f9802 commit 67081d7
Show file tree
Hide file tree
Showing 4 changed files with 461 additions and 4 deletions.
3 changes: 3 additions & 0 deletions mesa_frames/abstract/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ def _df_get_masked_df(
@abstractmethod
def _df_iterator(self, df: DataFrame) -> Iterator[dict[str, Any]]: ...

@abstractmethod
def _df_norm(self, df: DataFrame) -> DataFrame: ...

@abstractmethod
def _df_remove(
self, df: DataFrame, ids: Sequence[Any], index_col: str | None = None
Expand Down
Loading

0 comments on commit 67081d7

Please sign in to comment.