-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Ascii server #28
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
Ascii server #28
Conversation
Refs #1: Adding license to the project.
A very simple ASCII server that renders the text visualization in the browser.
Added a real websocket protocol, fixed the ugly template path hack, and implemented resetting.
mesa/visualization/TextServer.py
Outdated
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.
Give an actual example please. "data": some text unparseable by actual json is unhelpful for building APIs
So I was testing and ran into this crash:
I'm going to look into this, but it seems like it crashed well within the realm of expected use |
add tornado
Cleaning up some of the code following @kfuruya review.
Yep, should be an easy error to fix. Opened Issue #33 to deal with it. |
Fixing issue #33, bug which caused the server to crash when an out-of-range step was requested.
Adding a play button, which runs the model at the set frame rate until it hits the end.
d90756c
to
9ad9cc7
Compare
* fix bug where agent gives money to itself in the boltzmann model example * [pre-commit.ci] auto fixes from pre-commit.com hooks --------- Co-authored-by: Houssam Kherraz <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* fix bug where agent gives money to itself in the boltzmann model example * [pre-commit.ci] auto fixes from pre-commit.com hooks --------- Co-authored-by: Houssam Kherraz <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* fix bug where agent gives money to itself in the boltzmann model example * [pre-commit.ci] auto fixes from pre-commit.com hooks --------- Co-authored-by: Houssam Kherraz <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Implementing a simple server which displays TextVisualization ascii visualizations in-browser, with 'Step' and 'Reset' buttons. Demonstrates how to template a page based on a visualization, and then populate it with step-by-step data generated from a model object.
Resolves Issue #26 (now with issue #33 fixed as well)