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

Don't fail if we're missing a vehicle's fuel type #3689

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

zneedell
Copy link
Collaborator

@zneedell zneedell commented Dec 3, 2022

I was running into an error in the second iteration when an agent has a bike trip in their plan memory, which happens when the R5Wrapper is trying to look up the fuel cost for "food" and it isn't in the input table. I think it's safe to assume that if the fuel cost of a certain type of fuel isn't defined we can just use 0 by default


This change is Reviewable

Copy link
Collaborator

@Xuan-1998 Xuan-1998 left a comment

Choose a reason for hiding this comment

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

LGTM

@zneedell zneedell merged commit 5a09bf0 into develop Dec 8, 2022
@zneedell zneedell deleted the zn/fix-food-keyerror branch December 8, 2022 22:41
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.

2 participants