Closed
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
Contributor
There was a problem hiding this comment.
Give an actual example please. "data": some text unparseable by actual json is unhelpful for building APIs
Contributor
|
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.
Member
Author
|
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
EwoutH
pushed a commit
that referenced
this pull request
Oct 12, 2024
* 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>
EwoutH
pushed a commit
that referenced
this pull request
Oct 12, 2024
* 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>
EwoutH
pushed a commit
to EwoutH/mesa
that referenced
this pull request
Oct 15, 2024
* 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)