Skip to content

Commit 169a489

Browse files
authored
Merge pull request #199 from toruseo/develop
Add "flow_speed" visualization mode for network plot
2 parents fc0d4be + 25c7021 commit 169a489

File tree

3 files changed

+171
-50
lines changed

3 files changed

+171
-50
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ dmypy.json
128128
# Pyre type checker
129129
.pyre/
130130

131+
out*/
131132
out/
132133
demos_and_examples/out/
133134
demos_and_examples/out*/

tests/test_other_functions.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@ def test_analyzer():
5252
W.analyzer.plot_vehicles_log(["100", "110"])
5353
W.analyzer.macroscopic_fundamental_diagram()
5454
W.analyzer.network_average()
55-
for t in list(range(0,W.TMAX,int(W.TMAX/6))):
55+
for t in list(range(0,W.TMAX,int(W.TMAX/3))):
5656
W.analyzer.network(t, detailed=0, network_font_size=0, figsize=(4,4))
57-
for t in list(range(0,W.TMAX,int(W.TMAX/6))):
57+
W.analyzer.network(t, detailed=0, network_font_size=0, figsize=(4,4), state_variables="flow_speed", legend=False)
58+
for t in list(range(0,W.TMAX,int(W.TMAX/3))):
5859
W.analyzer.network(t, detailed=1, network_font_size=0)
60+
W.analyzer.network(t, detailed=1, network_font_size=0, state_variables="flow_speed", legend=False)
5961
W.analyzer.network_anim(animation_speed_inverse=15, detailed=0, network_font_size=0)
6062
W.analyzer.network_anim(detailed=1, network_font_size=0, figsize=(12,12))
6163
W.analyzer.network_fancy(animation_speed_inverse=15, sample_ratio=0.3, interval=5, trace_length=5)

0 commit comments

Comments
 (0)