Add new GIS example: Solar Adoption model#381
Open
ShreyasN707 wants to merge 9 commits intomesa:mainfrom
Open
Conversation
Member
|
Thanks for the PR, looks like a cool model. Could you:
|
5462cec to
b5c8936
Compare
for more information, see https://pre-commit.ci
ShreyasN707
commented
Mar 17, 2026
Contributor
Author
ShreyasN707
left a comment
There was a problem hiding this comment.
since no one was ready to give a peer review to my PR i reviewed it myself
- There is no overlap with other examples
- It showcases interesting ABM mechanics, dynamics or phenomena
- It showcases Mesa features not already well-covered by other examples
- Uses current Mesa APIs
- I tested the running and visualizatoin of it
- There are no dead code, unused imports, or unnecessary complexity
- The README explains what it does, what it demonstrates, and how to run it
- This PR follows the template and commits are clean
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.
Does it belong?
Is it correct and current?
unique_id, dict portrayals, etc.)rngseedIs it clean?
What this example demonstrates
Using
GeoSpaceto manage spatial relationships between agentsLoading environmental data with
RasterLayer.from_file()Creating agents from GeoJSON using
AgentCreatorVisualizing the simulation with a Solara dashboard using
make_geospace_component, where households change color as they adopt solarImplementation notes
A
data/generate_data.pyscript generates synthetichouseholds.geojsonandsolar_radiation.tiffiles so the example can run without external datasets.The code follows the standard Mesa example structure and uses the built-in random generator.
The example runs successfully with the existing
test_gis_examples.pytest suite.