Skip to content

Commit

Permalink
addressed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AboudyKreidieh committed Jul 9, 2020
1 parent df36258 commit 5d606a4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions flow/controllers/car_following_models.py
Expand Up @@ -57,7 +57,7 @@ def __init__(self,
time_delay=0.0,
noise=0,
fail_safe=None,
display_warnings=True):
display_warnings=False):
"""Instantiate a CFM controller."""
BaseController.__init__(
self,
Expand Down Expand Up @@ -136,7 +136,7 @@ def __init__(self,
time_delay=0.0,
noise=0,
fail_safe=None,
display_warnings=True):
display_warnings=False):
"""Instantiate a Bilateral car-following model controller."""
BaseController.__init__(
self,
Expand Down Expand Up @@ -219,7 +219,7 @@ def __init__(self,
time_delay=0.0,
noise=0,
fail_safe=None,
display_warnings=True):
display_warnings=False):
"""Instantiate a Linear Adaptive Cruise controller."""
BaseController.__init__(
self,
Expand Down Expand Up @@ -299,7 +299,7 @@ def __init__(self,
time_delay=0,
noise=0,
fail_safe=None,
display_warnings=True):
display_warnings=False):
"""Instantiate an Optimal Vehicle Model controller."""
BaseController.__init__(
self,
Expand Down Expand Up @@ -377,7 +377,7 @@ def __init__(self,
time_delay=0.0,
noise=0,
fail_safe=None,
display_warnings=True):
display_warnings=False):
"""Instantiate a Linear OVM controller."""
BaseController.__init__(
self,
Expand Down Expand Up @@ -460,7 +460,7 @@ def __init__(self,
time_delay=0.0,
noise=0,
fail_safe=None,
display_warnings=True,
display_warnings=False,
car_following_params=None):
"""Instantiate an IDM controller."""
BaseController.__init__(
Expand Down Expand Up @@ -565,7 +565,7 @@ def __init__(self,
delay=0,
noise=0,
fail_safe=None,
display_warnings=True):
display_warnings=False):
"""Instantiate a Gipps' controller."""
BaseController.__init__(
self,
Expand Down Expand Up @@ -648,7 +648,7 @@ def __init__(self,
time_delay=0,
noise=0,
fail_safe=None,
display_warnings=True):
display_warnings=False):
"""Instantiate an Bando controller."""
BaseController.__init__(
self,
Expand Down
4 changes: 2 additions & 2 deletions flow/core/kernel/simulation/traci.py
Expand Up @@ -273,8 +273,8 @@ def teardown_sumo(self):
def save_emission(self, run_id=0):
"""Save any collected emission data to a csv file.
If not data was collected, nothing happens. Moreover, any internally
stored data by this class is clear whenever data is stored.
If no data was collected, nothing happens. Moreover, any internally
stored data by this class is cleared whenever data is stored.
Parameters
----------
Expand Down
4 changes: 2 additions & 2 deletions flow/core/kernel/vehicle/traci.py
Expand Up @@ -1167,7 +1167,7 @@ def get_accel(self, veh_id, noise=True, failsafe=True):
else:
metric_name += '_no_noise'
if failsafe:
metric_name += '_with_falsafe'
metric_name += '_with_failsafe'
else:
metric_name += '_no_failsafe'

Expand All @@ -1182,7 +1182,7 @@ def update_accel(self, veh_id, accel, noise=True, failsafe=True):
else:
metric_name += '_no_noise'
if failsafe:
metric_name += '_with_falsafe'
metric_name += '_with_failsafe'
else:
metric_name += '_no_failsafe'

Expand Down
2 changes: 1 addition & 1 deletion flow/core/rewards.py
Expand Up @@ -307,7 +307,7 @@ def punish_rl_lane_changes(env, penalty=1):


def energy_consumption(env, gain=.001):
"""Calculate power consumption of a vehicle.
"""Calculate power consumption for all vehicle.
Assumes vehicle is an average sized vehicle.
The power calculated here is the lower bound of the actual power consumed
Expand Down
2 changes: 1 addition & 1 deletion flow/data_pipeline/data_pipeline.py
Expand Up @@ -18,7 +18,7 @@ def generate_trajectory_table(emission_files, trajectory_table_path, source_id):
emission_files : list
paths to the SUMO emission
trajectory_table_path : str
path to the file fot S3 upload only
path to the file for S3 upload only
source_id : str
the source id of this simulation
"""
Expand Down

0 comments on commit 5d606a4

Please sign in to comment.