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

[Bug] gtfs2pt.py - Error in routeID and vehicleID in xml file #13346

Closed
JoaoMarcelino opened this issue May 31, 2023 · 3 comments
Closed

[Bug] gtfs2pt.py - Error in routeID and vehicleID in xml file #13346

JoaoMarcelino opened this issue May 31, 2023 · 3 comments
Assignees
Milestone

Comments

@JoaoMarcelino
Copy link

Hello,

I was trying to translate GTFS data to SUMO using python, but sometimes the route id comes in a messy format and thus unavailable to use in the simulation.

The command used was
options = [ "-n", network_file, '--gtfs', gtfs_file, '--date', '20220912', '-v', '--fcd', fcd_folder, '--network-split', resources_folder, '--vtype-output', vtpyes, '--route-output', routes, '--additional-output', stops, ] gtfs2pt.main(gtfs.get_options(options))

Resulting in a vehicles.add.xml file with:

<route id="('106_0_U_10',)" edges="158756053 (...)">

and

<vehicle id="('106_0_U_10',).0" route="('106_0_U_10',)" type="bus" depart="33590" line="('106_0_U_10',)">

I tried replicating the bug in Windows 10 sumo version 1.17.0 but the route id came clean and ready to be used in simulation.
<route id="106_0_U_10" edges="158756053 (...)">

SUMO-version:
Eclipse SUMO sumo Version 1.17.0
Build features: Linux-5.4.0-147-generic x86_64 GNU 9.4.0 Release FMI Proj GUI Intl SWIG GDAL GL2PS Eigen

operating system:
Docker
ubuntu:20.04

@behrisch behrisch added this to the 1.18.0 milestone Jun 6, 2023
@behrisch
Copy link
Contributor

behrisch commented Jun 8, 2023

@JoaoMarcelino Can you report the Python and pandas version used?

@JoaoMarcelino
Copy link
Author

The error occured in Python 3.8.10 and pandas 2.0.2.
After testing in other computer with the same docker version, sumo version, Python 3.8.10 and pandas 1.5.3 the bug no longer occured, and it was possible to create the file correctly.

@behrisch behrisch modified the milestones: 1.18.0, 1.19.0 Jun 29, 2023
@behrisch
Copy link
Contributor

The reason is the change in pandas 2.0 due to pandas-dev/pandas#42795

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants