Skip to content

Commit

Permalink
Update colab notebook (#38)
Browse files Browse the repository at this point in the history
* Update colab notebook

* Update demo_notebook_05en_for_google_colab.ipynb
  • Loading branch information
toruseo authored Mar 20, 2024
1 parent 8fbbf88 commit 0820e9e
Show file tree
Hide file tree
Showing 5 changed files with 153 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![PyPi](https://img.shields.io/pypi/v/uxsim.svg)](https://pypi.python.org/pypi/uxsim)
[![arXiv](https://img.shields.io/badge/arXiv-2309.17114-b31b1b.svg)](http://dx.doi.org/10.48550/arXiv.2309.17114)
[![Demo in Colab](https://colab.research.google.com/assets/colab-badge.svg)](http://colab.research.google.com/github/toruseo/UXsim/blob/main/demos_and_examples/demo_notebook_01en_for_colab.ipynb)
[![Demo in Colab](https://colab.research.google.com/assets/colab-badge.svg)](http://colab.research.google.com/github/toruseo/UXsim/blob/main/demos_and_examples/demo_notebook_05en_for_google_colab.ipynb)
[![Static Badge](https://img.shields.io/badge/readme-English%20%F0%9F%87%BA%F0%9F%87%B8%20-%20darkblue)](https://github.com/toruseo/UXsim/blob/main/README.md)


Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![PyPi](https://img.shields.io/pypi/v/uxsim.svg)](https://pypi.python.org/pypi/uxsim)
[![arXiv](https://img.shields.io/badge/arXiv-2309.17114-b31b1b.svg)](http://dx.doi.org/10.48550/arXiv.2309.17114)
[![Demo in Colab](https://colab.research.google.com/assets/colab-badge.svg)](http://colab.research.google.com/github/toruseo/UXsim/blob/main/demos_and_examples/demo_notebook_01en_for_colab.ipynb)
[![Demo in Colab](https://colab.research.google.com/assets/colab-badge.svg)](http://colab.research.google.com/github/toruseo/UXsim/blob/main/demos_and_examples/demo_notebook_05en_for_google_colab.ipynb)
[![Static Badge](https://img.shields.io/badge/readme-%E6%97%A5%E6%9C%AC%E8%AA%9E%20%F0%9F%87%AF%F0%9F%87%B5%20-pink)](https://github.com/toruseo/UXsim/blob/main/README.jp.md)


Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions demos_and_examples/uxsim/uxsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -2732,6 +2732,10 @@ def addNode(W, *args, **kwargs):
A list representing the signal at the node. Default is [0], representing no signal.
If a signal is present, the list contains the green times for each group.
For example, `signal`=[60, 10, 50, 5] means that this signal has 4 phases, and green time for the 1st group is 60 s.
signal_offset : float, optional
The offset of the signal. Default is 0.
flow_capacity : float, optional
The maximum flow capacity of the node. Default is None, meaning infinite capacity.
Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion tests/test_verification_route_choice.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
This script verifies whether UXsim outputs reasonable solutions for two route networks in various configurations.
This script verifies whether UXsim outputs reasonable solutions for multiple route networks in various configurations.
Note that it uses random numbers for rouce choice behavior, so the results may vary slightly between runs.
"""

Expand Down

0 comments on commit 0820e9e

Please sign in to comment.