-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to AgentSetDF and AgentsDF before time.py -> CopyMixin (#16)
* Modified AgentSet and AgentsDF before adding mesa_frames/time.py. Created a CopyMixin for copy and deepcopy methods to let both AgentSet and Scheduler inherit. Added possibility of using 'do' method with a mask in AgentSetDF, such that the Scheduler can use it to run the method only on a subset of agents. Minor fixes to type hints and docstrings. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * pre-commit fixes * minor fixes for tests * moved sampling to last step (otherwise, can sample outside of final mask) * from typing to typing-extensions * added mask to AgentsDF.do * bug fixes, added tests for AgentsDF * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * change to polars._typing and added test.__init__ * changed df comparison * keys fix * fix * change to .toml for polars._typing * added comment for typing-extensions, removed geopandas(will be added in the future for mesa-frames.geo) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
564ca66
commit bf1ccd9
Showing
18 changed files
with
1,959 additions
and
490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,10 +42,10 @@ <h2>Submodules</h2> | |
<h1 class="modulename"> | ||
mesa_frames </h1> | ||
|
||
|
||
|
||
|
||
|
||
</section> | ||
</main> | ||
<script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.