overthesun / simoc

A scalable model of an interactive, off-world community
https://ngs.simoc.space/
GNU General Public License v3.0
2 stars 1 forks source link

Bump mesa from 1.1.1 to 2.1 #402

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps mesa from 1.1.1 to 2.1.

Release notes

Sourced from mesa's releases.

v2.1.0 Youngtown

This release creates mesa.experimental namespace, this solves the issue that PyPI release will not allow git-based install.

Users should read the Mesa 2.0.0 release note, as this contains the details about the breaking changes and other major changes that were part of Mesa 2.0 release.

The mesa.experimental currently consists of JupyterViz, a new visualization framework that can run on a Jupyter notebook as well as standalone.

Changes:

  • Creates mesa.experimental namespace #1736
  • Fix Ruff lint error #1737
  • Update permissions for PyPI #1732

v2.0.0 Wellton

Special notes

Mesa 2.0 includes: * an experimental pure python user interface/ visualization that is also jupyter compatible please see the visualization tutorial_ * several breaking changes that provide significant improvements to Mesa.

.. _visualization tutorial: https://mesa.readthedocs.io/en/latest/tutorials/visualization_tutorial.html Breaking Changes:

  • space: change coord_iter to return (content,(x,y)) instead of (content, x,y); this reduces known errors of scheduler to grid mismatch #1566, #1723
  • space: change NetworkGrid get_neighbors to get_neighborhood; improves performance #1542
  • space: raise exception when pos is out of bounds in Grid.get_neighborhood #1524
  • space: remove deprecations (#1520, #1687, #1688):
    • find_empty(): convert this to move_to_empty()
    • num_agents: removed parameter from move_to_empty()
    • position_agent(): convert this to place_agent
    • neighbor_iter(): convert this to iter_neighborhood()
  • batchrunner: remove deprecations #1627
    • class BatchRunner and class BatchRunnerMP: convert these to batch_run()
    • Please see this batch_run() example_ if you would like to see an an implementation.
  • visualization: easier visualization creation #1693
    • UserSettableParameter(['number', 'slider','checkbox', 'choice', 'StaticText']): convert to NumberInput , Slider, CheckBox, Choice, StaticText
    • Please see this visualization example_ if you would like to see an implementation.

.. _batch_run() example: https://github.com/projectmesa/mesa-examples/blob/db2ec0383eb3b1868e91c828101e84cce97bbb63/examples/bank_reserves/batch_run.py#L188-L221 .. _visualization example: https://github.com/projectmesa/mesa-examples/blob/db2ec0383eb3b1868e91c828101e84cce97bbb63/examples/boltzmann_wealth_model/boltzmann_wealth_model/server.py#L25-L32.)

New Features:

  • datacollector: can now handle data collection by agent type #1419, #1702
  • time: allows for model level StageActivation #1709
  • visualization: ChartModule can have dynamically named properties #1685
  • visualization: improved stop server to end visualizations #1646
  • experimental python front end option: integrated the initial prototype of the pure python front end option #1698, #1726

... (truncated)

Changelog

Sourced from mesa's changelog.

.. :changelog:

Release History

2.1.0 (2023-07-22) Youngtown +++++++++++++++++++++++++++++

This release creates mesa.experimental namespace, this solves the issue that PyPI release will not allow git-based install.

Users should read the Mesa 2.0.0 release note (directly below this), as this contains the details about the breaking changes and other major changes that were part of Mesa 2.0 release.

Changes:

  • Creates mesa.experimental namespace #1736
  • Fix Ruff lint error #1737
  • Update permissions for PyPI #1732

2.0.0 (2023-07-15) Wellton ++++++++++++++++++++++++++

Special notes

Mesa 2.0 includes: * an experimental pure python user interface/ visualization that is also jupyter compatible please see the visualization tutorial_ * an improved datacollector that allows collection by agent type * several breaking changes that provide significant improvements to Mesa.

.. _visualization tutorial: https://mesa.readthedocs.io/en/latest/tutorials/visualization_tutorial.html Breaking Changes:

  • space: change coord_iter to return (content,(x,y)) instead of (content, x,y); this reduces known errors of scheduler to grid mismatch #1566, #1723
  • space: change NetworkGrid get_neighbors to get_neighborhood; improves performance #1542
  • space: raise exception when pos is out of bounds in Grid.get_neighborhood #1524
  • space: remove deprecations (#1520, #1687, #1688):
    • find_empty(): convert this to move_to_empty()
    • num_agents: removed parameter from move_to_empty()
    • position_agent(): convert this to place_agent
    • neighbor_iter(): convert this to iter_neighborhood()
  • batchrunner: remove deprecations #1627
    • class BatchRunner and class BatchRunnerMP: convert these to batch_run()
    • Please see this batch_run() example_ if you would like to see an an implementation.
  • visualization: easier visualization creation #1693
    • UserSettableParameter(['number', 'slider','checkbox', 'choice', 'StaticText']): convert to NumberInput , Slider, CheckBox, Choice, StaticText
    • Please see this visualization example_ if you would like to see an implementation.

.. _batch_run() example: https://github.com/projectmesa/mesa-examples/blob/db2ec0383eb3b1868e91c828101e84cce97bbb63/examples/bank_reserves/batch_run.py#L188-L221 .. _visualization example: https://github.com/projectmesa/mesa-examples/blob/db2ec0383eb3b1868e91c828101e84cce97bbb63/examples/boltzmann_wealth_model/boltzmann_wealth_model/server.py#L25-L32.)

... (truncated)

Commits
  • e9e8c34 update history for Mesa 2.1
  • f08851c Fix Ruff lint error
  • ad024a6 Initialize Jupyter viz
  • 4985ef3 release to PyPI: Fix permission
  • 8556fbc update history for 2.0 release
  • 950adb8 Fix visualization_tutorial Colab link
  • 53e9f8d Update config API for RTD setting & bump to Python 3.9
  • c710987 Bump mesa-models Git revision hash
  • 03bc937 viz tutorial: Remove explicit mesa-models install
  • 3c3cd7e Add mesa-models as dependency
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 1 year ago

Superseded by #405.