-
Notifications
You must be signed in to change notification settings - Fork 3
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
Transit mode coding error during assignment #28
Comments
Could you share the sceanrio_config.toml and \emme_project\Database_transit\apply_fares_report_ea_{timestamp}.txt. Seems that the prepare transit network did not work properly. |
We are still getting a similar error after re-downloading the network from v9.1, switching our code over to the
|
please try the latest Emme version (4.6.2) |
We switched to Emme 4.6.2 per your instructions and got a different error this time around: I took the demand matrices that you shared in the v9.1 folder, but just to be sure, here's a summary on each matrix. If you could confirm that your version is indeed the same that would be great. |
The demand matrices(v9.1) you use are correct. |
Thanks for updating the code. Just to be sure, if we wanted to replicate the skims that you shared previously, would we want to start with iteration 1, or is it fine to run in iteration 0 with this code update? |
For testing and running transit assignment v9.1, we started with iteration 1, and used this version of assigned highway database |
After creating time period scenarios and preparing the transit network, we ran into this issue during transit assignment.
It was triggered at the following location:
tm2py\components\network\transit\transit.py in run_assignment(self, scenario, period, network, mode_types, use_fares, use_ccr, congested_transit_assignment)
Error: transit_assignment_spec[0].journey_levels[0].transition_rules[2].mode: Mode does not exist or is not a transit mode: f
Prior to the error, there were printouts showing that:
This seems to be the line causing
all_modes
to neglect ferry:all_modes = get_fare_modes(mode_types["TRN"])
The function called in the line above references a dictionary called
fare_modes
, which maps the ferry mode to 'd'. Below is the full value of the dictionary:The text was updated successfully, but these errors were encountered: