mesa-examples icon indicating copy to clipboard operation
mesa-examples copied to clipboard

Remove or update outdated visualisation from examples

Open EwoutH opened this issue 1 year ago • 10 comments

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

  • https://github.com/projectmesa/mesa-examples/issues/137

EwoutH avatar Aug 11 '24 10:08 EwoutH

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

EwoutH avatar Aug 27 '24 03:08 EwoutH

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

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

wang-boyu avatar Sep 03 '24 23:09 wang-boyu

@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 avatar Sep 04 '24 05:09 EwoutH

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...

TejasriPacharu avatar Dec 28 '24 05:12 TejasriPacharu

Go ahead, start with a simple example.

EwoutH avatar Dec 28 '24 09:12 EwoutH

Thanks

TejasriPacharu avatar Dec 28 '24 09:12 TejasriPacharu

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

TejasriPacharu avatar Dec 29 '24 05:12 TejasriPacharu

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

EwoutH avatar Dec 29 '24 07:12 EwoutH

@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!!?

TejasriPacharu avatar Jan 02 '25 06:01 TejasriPacharu

@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).

EwoutH avatar Jan 02 '25 20:01 EwoutH