Skip to content
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

Update sumo_setup files + Hardcode restart_instance=True #1000

Open
wants to merge 527 commits into
base: libsumo_optional
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
527 commits
Select commit Hold shift + click to select a range
5b38dc4
perhaps it means to ignore instead of add? (#966)
pengyuan-zhou Jun 14, 2020
86c2e4c
I210 highway updated (#934)
AboudyKreidieh Jun 15, 2020
29b06d8
Merge branch 'master' of https://github.com/flow-project/flow into i2…
AboudyKreidieh Jun 15, 2020
d9470cb
some cleanup
AboudyKreidieh Jun 15, 2020
1f6ceee
removed unused simulation
AboudyKreidieh Jun 15, 2020
9e16b19
I210 updated (#970)
AboudyKreidieh Jun 16, 2020
0253fb1
Merge branch 'master' of https://github.com/flow-project/flow into i2…
AboudyKreidieh Jun 16, 2020
7fd11b1
Add queries for safety metrics reporting
liljonnystyle Jun 16, 2020
c7937ff
fix typo
liljonnystyle Jun 16, 2020
d523b74
filter warmup steps and ghost edges from safety calculation
liljonnystyle Jun 16, 2020
946938a
invert safety_rate definition
liljonnystyle Jun 16, 2020
3857a44
Merge branch 'i210_dev' of github.com:flow-project/flow into i210_dev
eugenevinitsky Jun 17, 2020
5ac9828
cleanup to the multi-agent trainer (#971)
AboudyKreidieh Jun 18, 2020
5746937
Metadata Configuration (#957)
brentgryffindor Jun 18, 2020
25e623a
timespace diagram merge bug fix
akashvelu Jun 19, 2020
2e76a4c
reduce time-bins to 10s
liljonnystyle Jun 19, 2020
0c7de60
reduce time-bins in more places
liljonnystyle Jun 19, 2020
71dee84
docstring fix
akashvelu Jun 19, 2020
973528e
Merge pull request #974 from flow-project/av-time-space-fix2
akashvelu Jun 19, 2020
dfb1c07
add query to count vehicles in domain at every timestep
liljonnystyle Jun 19, 2020
23c55fe
fix typo in window function
liljonnystyle Jun 19, 2020
7ac4c32
implement _get_abs_pos() for HighwayNetwork
liljonnystyle Jun 19, 2020
588bffd
Merge pull request #978 from flow-project/jl-highway-tsd
liljonnystyle Jun 19, 2020
5de54b7
remove trailing whitespaces
liljonnystyle Jun 19, 2020
38a6d70
remove unused import
liljonnystyle Jun 19, 2020
3791048
fix flake8 issues
liljonnystyle Jun 19, 2020
ed01357
remove unused error variable
liljonnystyle Jun 19, 2020
b9fd3be
add expected blank line before function
liljonnystyle Jun 19, 2020
62ee8a0
add specified exception to try
liljonnystyle Jun 19, 2020
7824d88
implement HighwayNetwork for Time-Space Diagrams (#979)
liljonnystyle Jun 19, 2020
01676d9
correct some docstring inconsistencies
liljonnystyle Jun 19, 2020
dd24fb0
Add query to produce max score line in leaderboard
liljonnystyle Jun 21, 2020
4e6a9b2
Add I210 edgestarts
liljonnystyle Jun 22, 2020
61c0885
Merge branch 'i210_dev' of github.com:flow-project/flow into i210_dev
eugenevinitsky Jun 22, 2020
3a5508c
Replace strategic mode with the new name, sumo_default
eugenevinitsky Jun 22, 2020
641f724
fixed h-baselines bug (#982)
AboudyKreidieh Jun 22, 2020
af0b4f6
Replicated changes in 867. Done bug (#980)
kjang96 Jun 22, 2020
55e10fd
Merge branch 'i210_dev' into jl-safety-metrics
liljonnystyle Jun 23, 2020
3725e83
remove trailing whitespace
liljonnystyle Jun 23, 2020
f87f67a
fix CASE syntax error
liljonnystyle Jun 23, 2020
2a0d9cc
Merge pull request #972 from flow-project/jl-safety-metrics
liljonnystyle Jun 23, 2020
54ce4ec
reduce time-bins to 10s
liljonnystyle Jun 19, 2020
be5b853
reduce time-bins in more places
liljonnystyle Jun 19, 2020
55848a4
Merge branch 'jl-time-bins' of https://github.com/flow-project/flow i…
liljonnystyle Jun 23, 2020
85f65c5
Merge pull request #975 from flow-project/jl-time-bins
liljonnystyle Jun 23, 2020
2708287
Merge branch 'i210_dev' into jl-veh-counts
liljonnystyle Jun 23, 2020
e3de3db
fix groupby/window fn error
liljonnystyle Jun 23, 2020
afbfb6d
Merge pull request #976 from flow-project/jl-veh-counts
liljonnystyle Jun 23, 2020
7f406cb
fix is_baseline data type
liljonnystyle Jun 23, 2020
ce4cdb6
Merge pull request #983 from flow-project/jl-leaderboard-best
liljonnystyle Jun 23, 2020
5d897af
change schema, vehicle_counts -> vehicle_count
liljonnystyle Jun 23, 2020
7ddf890
fix some query bugs
brentgryffindor Jun 24, 2020
bf387f2
Merge branch 'akash-visualize-test-bug' of https://github.com/flow-pr…
brentgryffindor Jun 26, 2020
e0087e6
first attempt at use experiment in visualize_rllib
brentgryffindor Jun 30, 2020
97cfdee
grey out warmup period and ghost cells
liljonnystyle Jul 2, 2020
e22189e
fix rectangle positioning for both networks
liljonnystyle Jul 2, 2020
06ff2d9
Merge pull request #989 from flow-project/jl-tsd-mask
liljonnystyle Jul 2, 2020
c830f78
Reward options in I210-dev
eugenevinitsky Jul 2, 2020
ffec4cb
furthur changes on experiment.py to accomdate RL
brentgryffindor Jul 6, 2020
9f77475
fix some issues with compatibility
brentgryffindor Jul 6, 2020
7736cd8
clean up old codes in visualize_rllib
brentgryffindor Jul 6, 2020
8d60558
remove useless import from visualize_rllib, incoporate experiment.py …
brentgryffindor Jul 6, 2020
cb74b8c
fix pydocstyle
liljonnystyle Jul 6, 2020
eb2416b
add docstring
liljonnystyle Jul 6, 2020
6ed00e3
remove excess whitespace
liljonnystyle Jul 6, 2020
b80e563
only call get_configuration() if to_aws
liljonnystyle Jul 7, 2020
7c9a48a
Energy class for inventorying multiple energy models (#944)
liljonnystyle Jul 8, 2020
c319a6c
merge custom output and failsafes to master (#981)
liljonnystyle Jul 8, 2020
d36da2e
add 210 edgestarts for backwards compatibility (#985)
liljonnystyle Jul 8, 2020
5b7e8b2
Time-Space Diagrams automatically to S3 (#993)
liljonnystyle Jul 8, 2020
c4ba7ad
Query Prereq Check (#987)
brentgryffindor Jul 8, 2020
b40e435
Requirements update (#963)
AboudyKreidieh Jul 8, 2020
bb1f4f5
remove extra whitespace
liljonnystyle Jul 8, 2020
9f1a834
whitespace linting
liljonnystyle Jul 8, 2020
220994e
Update energy query with new power demand model (#996)
liljonnystyle Jul 9, 2020
f1ded54
Power-Demand Model fix (#995)
liljonnystyle Jul 9, 2020
f63cc37
convert tacoma fc to gallons per hour
liljonnystyle Jul 9, 2020
c2836e8
comment on road grade; exception handling on unpickling
liljonnystyle Jul 9, 2020
f565904
modify i210_replay
brentgryffindor Jul 10, 2020
97333cf
add --multi_node flag
nathanlct Jul 10, 2020
f7e1d78
Merge pull request #998 from flow-project/i210_add_multinode
nathanlct Jul 10, 2020
b8b1ec9
Update sumo_setup files + Hardcode restart_instance=True
Thibaud-Ardoin Jul 10, 2020
18f3fd2
fix minor flake8
liljonnystyle Jul 11, 2020
3ac508a
Ak/i210 master merge (#994)
AboudyKreidieh Jul 11, 2020
bb94c27
remove line from testing
liljonnystyle Jul 11, 2020
d373965
fix toyota temp file removal
liljonnystyle Jul 11, 2020
ab6732e
fix fc <> power unit conversion
liljonnystyle Jul 11, 2020
c0de59b
make default highway single penetration rate 0
liljonnystyle Jul 11, 2020
5f6acc2
use 1609.34 meters per mile
liljonnystyle Jul 11, 2020
7a773e3
fix av routing controller if no on-ramp
liljonnystyle Jul 11, 2020
0e8be95
Time-Space Diagram offset axes (#999)
liljonnystyle Jul 12, 2020
898757d
Merge branch 'master' into i210_dev
liljonnystyle Jul 12, 2020
fa1561a
Add kjang96 as codeowner
liljonnystyle Jul 12, 2020
707ed4c
Merge pull request #2 from CIRCLES-consortium/jl-update-codeowners
eugenevinitsky Jul 12, 2020
99db8d2
rename env for CIRCLES
liljonnystyle Jul 12, 2020
449c223
Merge branch 'i210_dev' into brent-consolidate-visualize
brentgryffindor Jul 13, 2020
349df67
merge conflict resolved
brentgryffindor Jul 13, 2020
0826201
make experiment.py only plot the first run out
brentgryffindor Jul 13, 2020
7fb5c53
remove redudent code between i210_replay and visualize_rllib
brentgryffindor Jul 13, 2020
c1670a2
remove commented code in i210_replay
brentgryffindor Jul 13, 2020
b7bbf99
Straight Road warmup steps to 500
liljonnystyle Jul 13, 2020
94e4b44
reformat leaderboard output
liljonnystyle Jul 14, 2020
337189f
update fact_max_score to use mpg
liljonnystyle Jul 14, 2020
ae211bf
update repo path
liljonnystyle Jul 14, 2020
d6f42a4
Merge branch 'master' of github.com:CIRCLES-consortium/flow into i210…
liljonnystyle Jul 14, 2020
e1e9d7c
Merge branch 'i210_dev' of github.com:CIRCLES-consortium/flow into i2…
liljonnystyle Jul 14, 2020
aadd3a2
update conda env name
liljonnystyle Jul 14, 2020
c5b1ccf
Merge branch 'master' of github.com:CIRCLES-consortium/flow into i210…
liljonnystyle Jul 14, 2020
c0c20d3
(re)Add libsumo build script
Thibaud-Ardoin Jul 14, 2020
0d0eeed
Merge branch 'libsumo_new_binaries' of https://github.com/flow-projec…
Thibaud-Ardoin Jul 14, 2020
53dceb5
Update .travis.yml + script correction
Thibaud-Ardoin Jul 14, 2020
f12add4
set warmup_steps = 500 for straight road; set display_warnings = True
liljonnystyle Jul 15, 2020
fb74472
fix pydocstyle and flake8
liljonnystyle Jul 15, 2020
0c0accd
Merge branch 'i210_dev' into libsumo_new_binaries
liljonnystyle Jul 15, 2020
581c704
Merge pull request #1 from CIRCLES-consortium/i210_dev
liljonnystyle Jul 15, 2020
a394893
Merge branch 'master' of github.com:CIRCLES-consortium/flow into libs…
liljonnystyle Jul 15, 2020
f48eb5f
Merge branch 'master' of github.com:CIRCLES-consortium/flow into bren…
liljonnystyle Jul 15, 2020
9987bd5
fix flake8
liljonnystyle Jul 15, 2020
16e0b0d
Add get_default_speed
Thibaud-Ardoin Jul 15, 2020
cb2c404
Add subscription_results VARs
Thibaud-Ardoin Jul 15, 2020
20f349b
fix some bugs
brentgryffindor Jul 15, 2020
e248c1a
cleanup references to args
liljonnystyle Jul 15, 2020
ffde8ba
add support for the sqs
brentgryffindor Jul 16, 2020
f093205
fix small bugs
brentgryffindor Jul 16, 2020
68f9c55
moving the place where the completed_query list is updated
brentgryffindor Jul 16, 2020
3e73029
Add restart_instance = True
Thibaud-Ardoin Jul 16, 2020
6c387e6
Update i210.py
akashvelu Jul 16, 2020
41aa9f2
Merge pull request #5 from CIRCLES-consortium/akashvelu-patch-1
akashvelu Jul 16, 2020
0c548ea
Merge branch 'master' of github.com:CIRCLES-consortium/flow into bren…
liljonnystyle Jul 17, 2020
6e02a20
remove unneeded import
liljonnystyle Jul 17, 2020
d766f0d
move and rename replay scripts
liljonnystyle Jul 17, 2020
793eecf
move replay tests to new file
liljonnystyle Jul 17, 2020
fb121f2
newline at eof
liljonnystyle Jul 17, 2020
de81a63
missed visualizer -> replay move
liljonnystyle Jul 17, 2020
15753a5
typo
liljonnystyle Jul 17, 2020
8fcb697
fix binned queries; fix top scores query
liljonnystyle Jul 17, 2020
4956003
Merge branch 'master' of github.com:CIRCLES-consortium/flow into jl-f…
liljonnystyle Jul 17, 2020
4ee4d53
try/except on register with warning
AboudyKreidieh Jul 17, 2020
c62a031
Update ray version to 0.8.4
akashvelu Jul 17, 2020
6e6ced4
New AMI
kjang96 Jul 17, 2020
b01de82
Added doc for libsumo installation on Mac
kjang96 Jul 17, 2020
e698db7
create emission path if not existing
AboudyKreidieh Jul 17, 2020
0d4a90e
Added code shell
kjang96 Jul 17, 2020
a042b88
Merge pull request #11 from CIRCLES-consortium/mkdir-bug
liljonnystyle Jul 17, 2020
279e193
Merge pull request #10 from CIRCLES-consortium/libsumo_doc
kjang96 Jul 17, 2020
cd8a8f7
Merge pull request #7 from CIRCLES-consortium/ray-local-mode
liljonnystyle Jul 18, 2020
0c8add7
automatic leaderboard upload
nathanlct Jul 18, 2020
ab6b96e
Merge pull request #9 from CIRCLES-consortium/new_ami
eugenevinitsky Jul 20, 2020
dbbc5db
Merge branch 'master' of github.com:CIRCLES-consortium/flow into akas…
liljonnystyle Jul 21, 2020
8ec8728
Import fixes
akashvelu Jul 22, 2020
54ac7f3
fix auto upload
nathanlct Jul 22, 2020
4bf9c88
fix tests
nathanlct Jul 22, 2020
24feaa7
Merge branch 'master' into i210_auto_upload
nathanlct Jul 22, 2020
43e12c9
New data files
akashvelu Jul 22, 2020
8ceb558
new data files
akashvelu Jul 22, 2020
27a9f79
Fixed import issue
akashvelu Jul 22, 2020
04e9d96
Fix more import statements
akashvelu Jul 22, 2020
0581e48
Fix import
akashvelu Jul 22, 2020
0f288a9
Remove print statement
akashvelu Jul 22, 2020
176debe
fix some issue with datapipeline utils
brentgryffindor Jul 23, 2020
d817106
Merge branch 'jl-fix-queries' of https://github.com/CIRCLES-consortiu…
brentgryffindor Jul 23, 2020
abeb53a
Merge pull request #15 from CIRCLES-consortium/akash-patch
akashvelu Jul 23, 2020
c7983d7
v_Des change
brentgryffindor Jul 23, 2020
a4685bd
fix leaderboard chart agg
brentgryffindor Jul 23, 2020
5552d7a
Merge branch 'master' of github.com:CIRCLES-consortium/flow into jl-f…
liljonnystyle Jul 23, 2020
5e23ec6
add % signs to leaderboard output
liljonnystyle Jul 23, 2020
1829f55
Merge pull request #6 from CIRCLES-consortium/jl-fix-queries
liljonnystyle Jul 23, 2020
e053e4c
Add energy model documentation
liljonnystyle Jul 24, 2020
6be50ae
apply fix
nathanlct Jul 26, 2020
fbb6772
set no_done_at_end to True
nathanlct Jul 26, 2020
fbf2b45
restore i210 params to default
brentgryffindor Jul 27, 2020
e7d1e55
add metadata collection, made a few code simplification
brentgryffindor Jul 27, 2020
b403d55
remove sanity check function
brentgryffindor Jul 27, 2020
07b3e0a
style fix and restore defualt value for i210 exp_config
brentgryffindor Jul 27, 2020
4a64c77
style fix
brentgryffindor Jul 27, 2020
6a2b7da
style fix
brentgryffindor Jul 27, 2020
62fdf9c
fixed queries, and added comment
brentgryffindor Jul 27, 2020
ddb000f
Add Ubuntu 1404 warnings + rollback sumo setup for ubuntu 1404
Thibaud-Ardoin Jul 28, 2020
24c9f8f
fix a comment
brentgryffindor Jul 28, 2020
71b7a40
3D Safety Metrics Query (#20)
liljonnystyle Jul 29, 2020
df977c3
Network speed query (#19)
liljonnystyle Jul 29, 2020
d1ceb7d
Add Prius energy model to pipeline (#16)
liljonnystyle Jul 29, 2020
23014b9
fix test_examples
brentgryffindor Jul 29, 2020
f6ea69c
make PR as str, modify network in leadbaord_chart_agg
brentgryffindor Jul 29, 2020
6256da1
Merge branch 'master' into brent-new-metadata
brentgryffindor Jul 29, 2020
9c5c548
fix style
brentgryffindor Jul 29, 2020
829d8b0
change the penetration_rate in highway_single.py to a decimal instead…
brentgryffindor Jul 29, 2020
759ba8f
update network string
liljonnystyle Jul 29, 2020
617f5c7
remove extra % sign
liljonnystyle Jul 29, 2020
fc80d6e
update energy model names
brentgryffindor Jul 29, 2020
ccacc57
Ak/brent consolidate visualize (#14)
AboudyKreidieh Jul 29, 2020
38e4401
update imports
liljonnystyle Jul 29, 2020
6d83aa4
remove backslash from docstring
liljonnystyle Jul 29, 2020
6797acf
some cleanup
AboudyKreidieh Jul 30, 2020
c10c385
speedup
AboudyKreidieh Jul 30, 2020
52af067
add docstring
brentgryffindor Jul 30, 2020
4a90be8
style fix
brentgryffindor Jul 30, 2020
3936955
Add Prius-fit energy model (#21)
liljonnystyle Jul 31, 2020
34fccd3
hide queue urls
brentgryffindor Jul 31, 2020
9a94d9c
bug fix
AboudyKreidieh Jul 31, 2020
58820ba
Merge pull request #18 from CIRCLES-consortium/brent-new-metadata
brentgryffindor Jul 31, 2020
fa345a2
Merge branch 'master' into brent-consolidate-visualize
brentgryffindor Jul 31, 2020
9e005cb
fix the inconsistent return
brentgryffindor Jul 31, 2020
709a6b1
Merge branch 'brent-consolidate-visualize' of https://github.com/CIRC…
brentgryffindor Jul 31, 2020
f699aab
addressed comments for this PR
brentgryffindor Aug 1, 2020
a01b7ee
Merge pull request #17 from CIRCLES-consortium/fix_no_done_at_end
eugenevinitsky Aug 1, 2020
fc81e03
style fix
brentgryffindor Aug 1, 2020
b14c5f0
change rl_replay to rllib_replay
liljonnystyle Aug 1, 2020
25c40b5
Merge pull request #12 from CIRCLES-consortium/i210_auto_upload
nathanlct Aug 3, 2020
b1c9833
Flake8
eugenevinitsky Aug 4, 2020
58f1379
Provide correct mac binary path
eugenevinitsky Aug 4, 2020
0f5a3d7
resolve merge conflict
brentgryffindor Aug 4, 2020
95f1a19
fix safety value when no leader (#27)
liljonnystyle Aug 6, 2020
47a82e6
refactor inflows/outflows query and loc_filter (#24)
liljonnystyle Aug 6, 2020
a45abc1
Compute Prius & Tacoma metrics together (#25)
liljonnystyle Aug 6, 2020
a771cbb
Fixed AMI
kjang96 Aug 6, 2020
9b803d5
Merge pull request #28 from CIRCLES-consortium/ami_patch
eugenevinitsky Aug 6, 2020
bb3858c
Add simlink
eugenevinitsky Aug 6, 2020
9f0a5a1
speedup to vehicle update() method
AboudyKreidieh Aug 7, 2020
c1987ba
Merge pull request #30 from CIRCLES-consortium/speedup
AboudyKreidieh Aug 8, 2020
d027367
fix some query issues
brentgryffindor Aug 10, 2020
43c1b53
style fix
brentgryffindor Aug 12, 2020
2eb11af
Merge pull request #35 from CIRCLES-consortium/brent-query-fix
brentgryffindor Aug 12, 2020
143df1e
fix fuel economy histo bins
liljonnystyle Aug 12, 2020
82dbc80
Merge pull request #36 from CIRCLES-consortium/jl-fuel-economy-bins
brentgryffindor Aug 12, 2020
52c516a
update prius model bin range and sort
liljonnystyle Aug 12, 2020
5d07dd9
Merge pull request #37 from CIRCLES-consortium/jl-fuel-economy-bins
liljonnystyle Aug 12, 2020
2bc2677
Merge pull request #4 from CIRCLES-consortium/brent-consolidate-visua…
AboudyKreidieh Aug 13, 2020
cfb2889
Merge branch 'master' into yashar_lane_change
liljonnystyle Aug 14, 2020
7a4ae51
allow abstract base method to handle not instantiated exception
liljonnystyle Aug 14, 2020
f1aee1c
add back in NotImplementedError's for get_custom_accel()
liljonnystyle Aug 14, 2020
ab98d36
add get_custom_accel() to RLController and FollowerStopper
liljonnystyle Aug 14, 2020
69806fa
add get_custom_accel() to BandoFTL and PISaturation controllers
liljonnystyle Aug 14, 2020
193ebae
add docstring description for params and returns
liljonnystyle Aug 15, 2020
34c9702
fix i210 replay
nathanlct Aug 16, 2020
d6d3630
shutdown ray before init
nathanlct Aug 16, 2020
2754567
fix wrong rl action fn
nathanlct Aug 16, 2020
c96eea5
fix file name
nathanlct Aug 16, 2020
cbe93f6
fix pep8
nathanlct Aug 17, 2020
8c75aa4
fix pep8
nathanlct Aug 17, 2020
785c5d6
compute action with explore=False
nathanlct Aug 17, 2020
d8a2954
make replay determinism an argument
nathanlct Aug 17, 2020
ade3ecf
Merge pull request #44 from CIRCLES-consortium/deterministic-replay
eugenevinitsky Aug 17, 2020
b9157c6
Merge pull request #43 from CIRCLES-consortium/fix_i210_replay
eugenevinitsky Aug 17, 2020
584f1c0
Merge pull request #39 from CIRCLES-consortium/yashar_lane_change
eugenevinitsky Aug 17, 2020
e151a12
Rearrange the pythonpath order so it works correctly
eugenevinitsky Aug 18, 2020
f7803c9
Add assert and warning to mac if libsumo is on
eugenevinitsky Aug 18, 2020
02b2cde
Merge branch 'master' into libsumo_new_binaries
eugenevinitsky Aug 18, 2020
a95a114
Merge branch 'libsumo_new_binaries' of https://github.com/CIRCLES-con…
eugenevinitsky Aug 18, 2020
ec71377
Switch to an AMI that has libsumo enabled correctly
eugenevinitsky Aug 18, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ exclude_lines =
if __name__ == .__main__.:
raise NotImplementedError
@ray.remote
@abstractmethod
def policy_mapping_fn*
def main(args)*
pragma: no cover
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,5 @@ flow.ang
*.ang.old
*.sang

# local configuration file for data pipeline
**/data_pipeline_config
20 changes: 15 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,33 @@ before_install:

# Set up requirements for flow
- conda env create -f environment.yml
- source activate flow
- source activate circles

# [sumo] dependencies and binaries
- pushd $HOME/build/flow-project
- ./flow/scripts/setup_libsumo_ubuntu.sh
- pushd $HOME/build/CIRCLES-consortium
- ./flow/scripts/setup_sumo_ubuntu1604.sh
- popd
- source ~/.bashrc

# [aimsun] install the conda env and update the path to the env
- pushd $HOME/build/flow-project
- pushd $HOME/build/CIRCLES-consortium
- ./flow/scripts/setup_aimsun.sh
- popd
- source ~/.bashrc
- export AIMSUN_SITEPACKAGES="/home/travis/miniconda/envs/aimsun_flow"
- export AIMSUN_NEXT_PATH="/home/user/Aimsun_Next_XXX"

# Install stable-baselines
- pip install stable_baselines==2.7.0

# Install h-baselines
- pushd $HOME
- git clone https://github.com/AboudyKreidieh/h-baselines.git
- pushd h-baselines
- pip install -e .
- popd
- popd

- ls ../

install:
Expand All @@ -62,7 +73,6 @@ install:
- pip install -e .
- pip install coveralls
- pip install jupyter
- pip install stable_baselines==2.7.0

script:
- nose2 --with-coverage
Expand Down
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in the repo.
* @cathywu @eugenevinitsky @AboudyKreidieh @kanaadp
* @eugenevinitsky @AboudyKreidieh @kjang96

# Order is important. The last matching pattern has the most precedence.
# So if a pull request only touches javascript files, only these owners
Expand Down
Binary file added docs/Prius_EnergyModel.pdf
Binary file not shown.
Binary file added docs/Tacoma_EnergyModel.pdf
Binary file not shown.
23 changes: 23 additions & 0 deletions docs/libsumo_mac.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# How to install Libsumo for Mac OS

This is adapted from an email exchange with the SUMO staff.



To install libsumo requires re-building and installing SUMO from source.

## Steps

- **Install swig:** ```brew install swig```
- **Clone the repo:** ```git clone https://github.com/eclipse/sumo.git```
- **Create a “cmake-build” directory inside sumo/build/ and navigate to it:** ```mkdir build/cmake-build && cd build/cmake-build```

**The next 3 steps are inside that directory**

- ```cmake ../..```
- ```make```
- ```make install```

## Additional Notes
- You can test if libsumo has been built looking at (./testlibsumo) inside the sumo/bin/ directory.
- Bear in mind to use libsumo with the same Python version with which CMake built SUMO.
112 changes: 85 additions & 27 deletions docs/source/flow_setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.. contents:: Table of contents

Local Installation of Flow
==================
==========================

To get Flow running, you need three things: Flow,

Expand Down Expand Up @@ -61,10 +61,13 @@ install everything you will need from SUMO, run one of the below scripts from
the Flow main directory. Choose the script that matches the operating system
you are running.


For Ubuntu 14.04:

::
**WARNING**:
Libsumo is not supported on Ubuntu 14.04. This script will setup a sumo without libsumo.

::
scripts/setup_sumo_ubuntu1404.sh

For Ubuntu 16.04:
Expand Down Expand Up @@ -108,7 +111,25 @@ Note that, if the above commands did not work, you may need to run
``source ~/.bashrc`` or open a new terminal to update your $PATH variable.

*Troubleshooting*:
If you are a Mac user and the above command gives you the error ``FXApp:openDisplay: unable to open display :0.0``, make sure to open the application XQuartz.
If you are a Mac user and the above command gives you the error
``FXApp:openDisplay: unable to open display :0.0``, make sure to open the
application XQuartz.

*Troubleshooting*:
If you are a Mac user and the above command gives you the error
``Segmentation fault: 11``, make sure to reinstall ``fox`` using brew.
::

# Uninstall Catalina bottle of fox:
$ brew uninstall --ignore-dependencies fox

# Edit brew Formula of fox:
$ brew edit fox

# Comment out or delete the following line: sha256 "c6697be294c9a0458580564d59f8db32791beb5e67a05a6246e0b969ffc068bc" => :catalina
# Install Mojave bottle of fox:
$ brew install fox


Testing your SUMO and Flow installation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -151,7 +172,10 @@ during the execution of various tasks. The path should look something like:
export AIMSUN_NEXT_PATH="/home/user/Aimsun_Next_X_Y_Z/" # Linux
export AIMSUN_NEXT_PATH="/Applications/Aimsun Next.app/Contents/MacOS/" # OS X

`Note for Mac users:` when you download Aimsun, you will get a folder named "Programming". You need to rename it to "programming" (all lowercase) and to move it inside the "Aimsun Next.app/Contents/MacOS/" directory so that the python API can work.
`Note for Mac users:` when you download Aimsun, you will get a folder named
"Programming". You need to rename it to "programming" (all lowercase) and to
move it inside the "Aimsun Next.app/Contents/MacOS/" directory so that the
python API can work.

In addition, being that Aimsun's python API is written to support Python 2.7.4,
we will need to create a Python 2.7.4 conda environment that Aimsun can refer
Expand Down Expand Up @@ -198,8 +222,11 @@ to activate the `flow` env. Type:
source activate flow
python examples/simulate.py ring --aimsun

*Troubleshootig for Ubuntu users with Aimsun 8.4*: when you run the above example, you may get a subprocess.Popen error ``OSError: [Errno 8] Exec format error:``.
To fix this, go to the `Aimsun Next` main directory, open the `Aimsun_Next` binary with a text editor and add the shebang to the first line of the script ``#!/bin/sh``.
*Troubleshootig for Ubuntu users with Aimsun 8.4*: when you run the above
example, you may get a subprocess.Popen error ``OSError: [Errno 8] Exec format error:``.
To fix this, go to the `Aimsun Next` main directory, open the `Aimsun_Next`
binary with a text editor and add the shebang to the first line of the script
``#!/bin/sh``.

(Optional) Install Ray RLlib
----------------------------
Expand All @@ -211,10 +238,11 @@ RLlib is one such library.
First visit <https://github.com/flow-project/ray/blob/master/doc/source/installation.rst> and
install the required packages.

If you are not intending to develop RL algorithms or customize rllib you don't need to do anything,
Ray was installed when you created the conda environment.
If you are not intending to develop RL algorithms or customize rllib you don't
need to do anything, Ray was installed when you created the conda environment.

If you are intending to modify Ray, the installation process for this library is as follows:
If you are intending to modify Ray, the installation process for this library
is as follows:

::

Expand Down Expand Up @@ -249,6 +277,34 @@ In order to test run an Flow experiment in RLlib, try the following command:
If it does not fail, this means that you have Flow properly configured with
RLlib.


Visualizing with Tensorboard
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To visualize the training progress:

::

tensorboard --logdir=~/ray_results

If tensorboard is not installed, you can install with pip:

::

pip install tensorboard

For information on how to deploy a cluster, refer to the
`Ray instructions <http://ray.readthedocs.io/en/latest/autoscaling.html>`_.
The basic workflow is running the following locally, ssh-ing into the host
machine, and starting jobs from there.

::

pip install boto3
ray create-or-update scripts/ray_autoscale.yaml
ray teardown scripts/ray_autoscale.yaml


(Optional) Install Stable Baselines
-----------------------------------

Expand All @@ -267,33 +323,29 @@ You can test your installation by running
python examples/train.py singleagent_ring --rl_trainer Stable-Baselines


(Optional) Install h-baselines
------------------------------

(Optional) Visualizing with Tensorboard
---------------------------------------

To visualize the training progress:
h-baselines is another variant of stable-baselines that support the use of
single-agent, multiagent, and hierarchical policies. To install h-baselines,
run the following commands:

::

tensorboard --logdir=~/ray_results

If tensorboard is not installed, you can install with pip:
git clone https://github.com/AboudyKreidieh/h-baselines.git
cd h-baselines
source activate flow # if using a Flow environment
pip install -e .

::

pip install tensorboard
Testing your h-baselines installation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For information on how to deploy a cluster, refer to the `Ray instructions <http://ray.readthedocs.io/en/latest/autoscaling.html>`_.
The basic workflow is running the following locally, ssh-ing into the host machine, and starting
jobs from there.
You can test your installation by running

::

pip install boto3
ray create-or-update scripts/ray_autoscale.yaml
ray teardown scripts/ray_autoscale.yaml


python examples/train.py singleagent_ring --rl_trainer h-baselines


(Optional) Direct install of SUMO from GitHub
Expand Down Expand Up @@ -358,16 +410,22 @@ If you have Ubuntu 14.04+, run the following command


Virtual installation of Flow (using docker containers)
================================
======================================================

To install a containerized Flow stack, run:

::

docker run -d -p 5901:5901 -p 6901:6901 fywu85/flow-desktop:latest

To access the docker container, go to the following URL and enter the default password `password`:

::

http://localhost:6901/vnc.html

To use the Jupyter Notebook inside the container, run:

::

jupyter notebook --ip=127.0.0.1
2 changes: 1 addition & 1 deletion docs/sumo_wheels.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ repository is migrating to a new SUMO version.
cd /path/to/sumo/bin
mkdir data
cp -r ../data/* data
tar -cJf binaries-<dist>.tar.xz !(Makefile*|start-command-line.bat)
tar -cJf binaries-<dist>.tar.gz !(Makefile*|start-command-line.bat)

5. Create a `sumotools` wheel from the python-related packages. This only needs
to be done once for all Ubuntu and Mac, as the python tools are distribution
Expand Down
29 changes: 15 additions & 14 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
name: flow
name: circles

dependencies:
- python==3.6.8
- scipy==1.1.0
- lxml==4.4.1
- six==1.11.0
- path.py
- python-dateutil==2.7.3
- pip>=18.0
- tensorflow==1.9.0
- cloudpickle==1.2.1
- setuptools==41.0.0
- plotly==2.4.0
- python==3.7.3
- pip:
- scipy==1.1.0
- lxml==4.4.1
- six==1.11.0
- path.py
- python-dateutil==2.7.3
- pip>=18.0
- tensorflow==1.15.2
- setuptools==41.0.0
- plotly==2.4.0
- gym==0.14.0
- pyprind==2.11.2
- nose2==0.8.0
Expand All @@ -21,9 +20,11 @@ dependencies:
- matplotlib==3.0.0
- dill
- lz4
- ray==0.7.3
- ray==0.8.0
- setproctitle
- psutil
- opencv-python
- boto3==1.4.8
- boto3==1.10.45
- redis~=2.10.6
- tabulate
- pytz
Loading