Skip to content

fix: Make bank_reserves batch_run example work - #1293

Merged
tpike3 merged 1 commit into
mesa:mainfrom
rht:fix_batch_run_ex
Apr 27, 2022
Merged

tpike3 merged 1 commit into
mesa:mainfrom
rht:fix_batch_run_ex

Conversation

@rht

@rht rht commented Apr 27, 2022

Copy link
Copy Markdown
Contributor

The example of both batch_run and legacy BatchRunner is not working. This PR is the fix.

@rht
rht force-pushed the fix_batch_run_ex branch from 7d29aed to d0fe6c9 Compare April 27, 2022 10:52
@codecov

codecov Bot commented Apr 27, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #1293 (d0fe6c9) into main (e582260) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1293   +/-   ##
=======================================
  Coverage   89.07%   89.07%           
=======================================
  Files          19       19           
  Lines        1245     1245           
  Branches      246      246           
=======================================
  Hits         1109     1109           
  Misses        101      101           
  Partials       35       35           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e582260...d0fe6c9. Read the comment docs.

"""
br = BatchRunner(
from mesa.batchrunner import BatchRunnerMP
br = BatchRunnerMP(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be converted to batch_run since we are deprecating BatchRunnerMP?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code here is intentionally left behind, so that people can compare how it is done via batch_run and BatchRunnerMP.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhh right... that is what I get for rushing and also trying to work on the script.

@tpike3 tpike3 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tpike3
tpike3 merged commit def2c1b into mesa:main Apr 27, 2022
@rht
rht deleted the fix_batch_run_ex branch April 27, 2022 13:01
@jackiekazil jackiekazil added this to the Quartzsite (next release) milestone Jun 15, 2022
EwoutH added a commit to EwoutH/mesa that referenced this pull request Nov 22, 2026
Fresh installs now pull in ipyvue and ipyvuetify 3 (Vue 3), as Solara
doesn't cap them. Solara 1.65.2 fixes the blank GridDraggable that this
caused in SolaraViz, so require at least that version.

In Jupyter notebooks, the Solara sidebar and fullscreen mode still don't
work with ipyvuetify 3 (widgetti/solara#1292, mesa#1294; fix in mesa#1293).
Solara supports both Vue versions and declines to cap them, so document
installing ipyvue<3 and ipyvuetify<3 instead of capping them in Mesa.

Refs mesa#4133.

Backport of mesa#4170, which is still open on main.

Adapted for 3.5.x: raised the existing solara>=1.57.4 floor; 3.5 has no
websockets<14 pin, so that part of the context was left out.

Assisted-by: Claude Opus 5.5
EwoutH added a commit that referenced this pull request Nov 22, 2026
Fresh installs now pull in ipyvue and ipyvuetify 3 (Vue 3), as Solara
doesn't cap them. Solara 1.65.2 fixes the blank GridDraggable that this
caused in SolaraViz, so require at least that version.

In Jupyter notebooks, the Solara sidebar and fullscreen mode still don't
work with ipyvuetify 3 (widgetti/solara#1292, #1294; fix in #1293).
Solara supports both Vue versions and declines to cap them, so document
installing ipyvue<3 and ipyvuetify<3 instead of capping them in Mesa.

Refs #4133.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants