Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove or update outdated visualisation from examples #154

Open
EwoutH opened this issue Aug 11, 2024 · 10 comments
Open

Remove or update outdated visualisation from examples #154

EwoutH opened this issue Aug 11, 2024 · 10 comments

Comments

@EwoutH
Copy link
Member

EwoutH commented Aug 11, 2024

Currently a lot of our examples still use the old, now removed visualisation. We should either remove, or even better, replace those visualisations with the new SolaraViz visualisation.

All old server.py visualisations should be replaced with app.py files in which SolaraViz is used.

Resources

For reference, these examples currently already use the updated visualisation:

We should also start to

@EwoutH
Copy link
Member Author

EwoutH commented Aug 27, 2024

With projectmesa/mesa#2214 merged and Mesa 3.0.0a2 released, you can now also specify “shapes” in a portrayal for SolaraViz.

@wang-boyu
Copy link
Member

wang-boyu commented Sep 3, 2024

This applies to gis examples too. Need to convert old visualizations to Solara:

  • AgentsAndNetworks
  • GeoSchelling
  • GeoSchellingPoints
  • GeoSIR (either remove or copy over from mesa-geo introductory tutorial)
  • Population
  • Rainfall
  • UrbanGrowth

@EwoutH
Copy link
Member Author

EwoutH commented Sep 4, 2024

@wang-boyu do you and maybe @tpike3 want to pick that up? Then I will see if I can make the, testable in CI.

EwoutH pushed a commit that referenced this issue Oct 17, 2024
This PR updates the remaining three gis examples to use Solara viz, partly addressing #154. It depends on projectmesa/mesa-geo#254 to be released, as these examples use raster layers.

Also made some small adjustments in ordering components to account for the grid layout, instead of the previous column layout in Solara viz.
wang-boyu added a commit to wang-boyu/mesa-examples that referenced this issue Oct 17, 2024
This PR updates the remaining three gis examples to use Solara viz, partly addressing projectmesa#154. It depends on projectmesa/mesa-geo#254 to be released, as these examples use raster layers.

Also made some small adjustments in ordering components to account for the grid layout, instead of the previous column layout in Solara viz.
@TejasriPacharu
Copy link

Hello People, Myself Teja Sri Pacharu, sorry for disturbing you in the middle of your enhancement processes of Mesa, but I would like to work on this, coz I have seen that the 'Bank reserves' example is still using the older visualization (server.py). Is the working on this issue still active?? if so, I would like learn and work on it...

@EwoutH
Copy link
Member Author

EwoutH commented Dec 28, 2024

Go ahead, start with a simple example.

@TejasriPacharu
Copy link

Thanks

@TejasriPacharu
Copy link

{5257B7D7-80C6-44DE-BAC1-9A0E7FE8C4B0} I have been trying to run it, but I am getting error. Am I missing something while running ???

@EwoutH
Copy link
Member Author

EwoutH commented Dec 29, 2024

I think you’re still using an older Mesa version, and need to update to the latest (3.1.1].

@TejasriPacharu
Copy link

TejasriPacharu commented Jan 2, 2025

@EwoutH How should be the scheduling of the agents in El Farol ??, Like I am working on the Solara Visualisation of El Farol Model (as it is simple), and I am getting lost near scheduling agents , can you share some references and guidance for making the El Farol model visualisation with Solara framework, please!!?

@EwoutH
Copy link
Member Author

EwoutH commented Jan 2, 2025

@TejasriPacharu, I would love to help you, but your question is pretty vague, so I don't know exactly what you mean. Could you share the following things:

  1. Goal: What are you trying to achieve exactly?
  2. Problem: What specific issue are you encountering with scheduling agents? (e.g., confusion about agent activation order, time steps, or interaction logic).
  3. What You’ve Tried: What have you already implemented or explored? Share any relevant code snippets or references you've checked.
  4. Specific Help Needed: What kind of guidance or resources are you looking for? (e.g., example models, documentation, or theoretical background).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants