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

Inflows (more features + new tuto) #666

Merged
merged 15 commits into from Jul 28, 2019
Merged

Inflows (more features + new tuto) #666

merged 15 commits into from Jul 28, 2019

Conversation

nathanlct
Copy link
Collaborator

@nathanlct nathanlct commented Jul 27, 2019

Pull request information

  • Status: Ready to merge
  • Kind of changes: New inflow features, new inflows tutorial
  • Related PR or issue: -

Description

Link to the tuto notebook: https://github.com/flow-project/flow/blob/better-inflows/tutorials/tutorial12_inflows.ipynb

  • added more parameters to InFlows.add, and completed the docstring (before there was just a link to sumo's wiki) -- modified the way inflows are created for sumo accordingly -- added some checks to catch easy mistakes with inflow params
  • rewrote the inflows tutorial to take account of this changes and make it more understandable, and added a example that makes use of almost every relevant features of inflows
  • also changed num_vehicles's default value from 1 to 0 when adding vehicle types in VehicleParams, to make it more explicit that we can have inflows without needed to add initials vehicles to the network (btw when there's no vehicles, numpy raises a mean of empty slice warning, but it doesn't say where it comes from -- maybe create an issue for this?)

@@ -384,6 +384,8 @@ class SimParams(object):
specifies whether to render the radius of RL observation
pxpm : int, optional
specifies rendering resolution (pixel / meter)
color_vehicles : bool, optional
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really like this feature. it'll definitely be helpful in other cases too

@AboudyKreidieh AboudyKreidieh self-requested a review July 28, 2019 01:25
Copy link
Member

@AboudyKreidieh AboudyKreidieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AboudyKreidieh AboudyKreidieh merged commit b991e83 into master Jul 28, 2019
@AboudyKreidieh AboudyKreidieh deleted the better-inflows branch July 28, 2019 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants