-
Notifications
You must be signed in to change notification settings - Fork 171
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
fix sugarscape_g1mt running options, requirements and changes to README #109
Conversation
examples/sugarscape_g1mt/Readme.md
Outdated
``` | ||
|
||
Then open your browser to [http://127.0.0.1:8521/](http://127.0.0.1:8521/) and press Reset, then Run. | ||
|
||
## Files | ||
|
||
* ``sugarscape_g1mt/trader_agents.py``: Defines the Trader agent class. | ||
* ``sugarscape_g1mt/resource_agents.py``: Defines the Sugar and Spice agent classes. | ||
* ``sugarscape_g1mt/resource_agents.py``: Defines the Resource agent class which contains an amount of sugar and spice. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those all should be single backticks, since they are Markdown syntax.
examples/sugarscape_g1mt/run.py
Outdated
@@ -64,42 +64,43 @@ def assess_results(results, single_agent): | |||
|
|||
args = sys.argv[1:] | |||
|
|||
|
|||
if args[0] == "runserver": | |||
try: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using a check if len(args) == 0
then server.launch()
would reduce the number of nesting by 1. According to PEP 20, flat is better than nested.
for more information, see https://pre-commit.ci
LGTM |
Merged, thank you @FoFFolo. |
I fixed the running options on the run.py script according to what the README says, adjusting the option to run "mesa runserver" command.
I also fixed the requirements text file as declared in the issue #76.
I modified the README based on the precedent PRs.
I noticed that there are other problems, especially in the app.py when launching solara, but I don't know if my changes are actually meaningful to merge, so I don't want to do a lot of messy changes.