You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The section of code that computes bus speeds from automobile speeds is ripe with magic numbers. These need to refer to either to fixed definitions defined in a data model or schema, or refer to dictionaries defined in the control files.
Ideally, things like facility type would be defined in code in one and only one place. These references could then be imported and use in this code. In the short-term, moving the magic numbers to a config file would be an improvement.
The section of code that computes bus speeds from automobile speeds is ripe with magic numbers. These need to refer to either to fixed definitions defined in a data model or schema, or refer to dictionaries defined in the control files.
tm2py/tm2py/components/network/transit/transit_network.py
Lines 186 to 211 in 36b8066
Progress:
Considerations
Ideally, things like facility type would be defined in code in one and only one place. These references could then be imported and use in this code. In the short-term, moving the magic numbers to a config file would be an improvement.
cc @gregerhardt @lmz
The text was updated successfully, but these errors were encountered: