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

Vehicle kms and noise calculation #269

Merged
merged 34 commits into from
Mar 23, 2021
Merged

Vehicle kms and noise calculation #269

merged 34 commits into from
Mar 23, 2021

Conversation

zptro
Copy link
Collaborator

@zptro zptro commented Mar 10, 2021

  • Sum vehicle kilometres to area level
  • Calculate noise areas
  • Print numbers of metro and train stations (for use in CBA maintenance cost calculation)
  • Save car time matrices in Emme

@zptro zptro marked this pull request as draft March 10, 2021 12:42
@zptro zptro marked this pull request as ready for review March 12, 2021 11:51
@zptro zptro requested a review from johpiip March 12, 2021 12:05
@zptro zptro linked an issue Mar 15, 2021 that may be closed by this pull request
Copy link
Contributor

@johpiip johpiip left a comment

Choose a reason for hiding this comment

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

Nice! I added a couple of comments regarding documentations. One other issue though... Are we still using pylint? The linter throws 215 problems in these changed files (trailing whitespace, too long lines, missing docstrings, naming conventions...). We could also do a separate PR for cleaning those here and in other scripts.

Scripts/parameters/zone.py Show resolved Hide resolved
Scripts/assignment/emme_assignment.py Outdated Show resolved Hide resolved
@zptro zptro linked an issue Mar 15, 2021 that may be closed by this pull request
@zptro
Copy link
Collaborator Author

zptro commented Mar 15, 2021

Are we still using pylint?

The question is rather "Are we still not using pylint?" 😄

A separate PR for fixing all the bad coding is a good idea.

Copy link
Contributor

@johpiip johpiip left a comment

Choose a reason for hiding this comment

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

Thanks for the changes! Looks good to me!

@zptro
Copy link
Collaborator Author

zptro commented Mar 16, 2021

@johpiip, maybe this is a better way of representing the step-wise function?

@zptro zptro requested a review from johpiip March 16, 2021 10:47
Copy link
Contributor

@johpiip johpiip left a comment

Choose a reason for hiding this comment

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

Just a couple optional changes. Nice refactoring!

Scripts/assignment/emme_assignment.py Outdated Show resolved Hide resolved
Scripts/parameters/assignment.py Outdated Show resolved Hide resolved
Scripts/parameters/assignment.py Outdated Show resolved Hide resolved
@zptro zptro requested a review from johpiip March 17, 2021 14:27
Copy link
Contributor

@johpiip johpiip left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@zptro zptro merged commit 3dca05b into master Mar 23, 2021
@zptro zptro deleted the feat/veh-kms-accidents branch March 23, 2021 10:09
@zptro zptro added this to the v4.0.4 milestone Apr 8, 2021
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.

Pandas not imported in EmmeAssignment Car travel time is not saved in Emme
2 participants