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

Cookiecutter doesn't create agent.py - should it? #1526

Closed
jackiekazil opened this issue Nov 15, 2022 · 3 comments
Closed

Cookiecutter doesn't create agent.py - should it? #1526

jackiekazil opened this issue Nov 15, 2022 · 3 comments
Labels

Comments

@jackiekazil
Copy link
Member

mesa startproject does not create an agent.py, because it puts in the agent in the model.py. Should it create an agent.py? I suspect that most people would have models complex enough that they should be separating it. Thoughts?

For reference, this is the format of the cookiecutter project: https://github.com/projectmesa/mesa/tree/main/mesa/cookiecutter-mesa/%7B%7Bcookiecutter.snake%7D%7D

@rht
Copy link
Contributor

rht commented Nov 16, 2022

My thought is that it might be overwhelming to have too many files as a starting point, that starting an ABM model from scratch could be perceived to be complex with lots of boilerplate code/files. But this might also be a cultural thing, because in MATLAB, every function is separated in their own file.

But splitting model.py into model.py and agent.py sounds fine to me, because the user already has a preconceived idea of what should be put there. While run.py and server.py need explanation.

@rht
Copy link
Contributor

rht commented Nov 16, 2022

See also #1269.

@quaquel
Copy link
Member

quaquel commented Oct 29, 2024

Cookiecutter got removed in #2421.

@quaquel quaquel closed this as completed Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants