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

test_examples.py: Add batch_run tests #144

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

test_examples.py: Add batch_run tests #144

wants to merge 7 commits into from

Conversation

EwoutH
Copy link
Member

@EwoutH EwoutH commented Jul 22, 2024

Test batch_run scripts, currently for bank_reserves and sugarscape_g1mt.

Requires #143 to be merged first, and part of projectmesa/mesa#2184.

@EwoutH
Copy link
Member Author

EwoutH commented Jul 22, 2024

This is quite fustrating, I will try to continue this after my vacation.

def get_batch_scripts():
return [
("examples.bank_reserves", "batch_run"),
("examples.sugarscape_g1mt", "run"),
Copy link
Contributor

Choose a reason for hiding this comment

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

This will take too long given that it will be 1000 steps.

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe we can include some shorter examples somewhere?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, by calling them batch_run_short, run_short.

Copy link
Member Author

Choose a reason for hiding this comment

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

Can we use a command line argument or an environment variable?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's easier to just name the functions.

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.

2 participants