Adding grass patches to WolfSheep model#161
Closed
davpaez wants to merge 1 commit intomesa:masterfrom
davpaez:grass_wolfsheep.34
Closed
Adding grass patches to WolfSheep model#161davpaez wants to merge 1 commit intomesa:masterfrom davpaez:grass_wolfsheep.34
davpaez wants to merge 1 commit intomesa:masterfrom
davpaez:grass_wolfsheep.34
Conversation
- adding parameters: grass_regrowth_time - reordering of arguments for WolfSheepPredation model - creating custom activation schedule by breed. This was done in order to emulate the procedures in the original model from netlogo - modifying methods for the case when grass=True - both wolves and sheep can die - they only reproduce if they are still living - added run_model method to show results in console, since I could get the visualization to run
Member
|
Awesome! Looks pretty good! Just adding a couple notes. Do you want to take a shot at adding the grass to the visualization as well? |
Member
There was a problem hiding this comment.
Printing should be optional (e.g. with a verbose parameter) since otherwise it clutters up the command line during batch runs, visualization, etc. This is fine for debugging, but best practice is probably to use a data collector to keep track of these stats.
Member
|
Additions made in #169. |
EwoutH
added a commit
that referenced
this pull request
Oct 12, 2024
This commit reverts PR #161 mesa/mesa-examples#161 That PR assumed that time advancement would be done automatically, like proposed in #2223 We encountered some underlying issues with time, which we couldn't resolve in time.
EwoutH
added a commit
that referenced
this pull request
Oct 12, 2024
This reinstates PR #161 after the previous revert.
EwoutH
added a commit
that referenced
this pull request
Oct 12, 2024
This commit reverts PR #161 mesa/mesa-examples#161 That PR assumed that time advancement would be done automatically, like proposed in #2223 We encountered some underlying issues with time, which we couldn't resolve in time.
EwoutH
added a commit
that referenced
this pull request
Oct 12, 2024
This reinstates PR #161 after the previous revert.
EwoutH
added a commit
to EwoutH/mesa
that referenced
this pull request
Oct 15, 2024
…esa#170) This commit reverts PR mesa#161 mesa/mesa-examples#161 That PR assumed that time advancement would be done automatically, like proposed in mesa#2223 We encountered some underlying issues with time, which we couldn't resolve in time.
EwoutH
added a commit
to EwoutH/mesa
that referenced
this pull request
Oct 15, 2024
…esa#170) This commit reverts PR mesa#161 mesa/mesa-examples#161 That PR assumed that time advancement would be done automatically, like proposed in mesa#2223 We encountered some underlying issues with time, which we couldn't resolve in time.
EwoutH
added a commit
to EwoutH/mesa
that referenced
this pull request
Oct 15, 2024
This reinstates PR mesa#161 after the previous revert.
EwoutH
added a commit
to EwoutH/mesa
that referenced
this pull request
Oct 15, 2024
This reinstates PR mesa#161 after the previous revert.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This solves #34
I tested this against the netlogo model, and it seems to behave very similarly.