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
running extract segments, gives the following error:
Traceback (most recent call last):
File "C:\Users/idshk/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_trajectory\qgis_processing\gtfsAlgorithm.py", line 194, in processAlgorithm
segments = self.get_segments(feed, add_avg_speed)
File "C:\Users/idshk/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_trajectory\qgis_processing\gtfsAlgorithm.py", line 230, in get_segments
segments = feed.segments
File "C:\OSGeo4W\apps\Python39\lib\site-packages\gtfs_functions\gtfs_functions.py", line 234, in segments
self._segments = self.get_segments()
File "C:\OSGeo4W\apps\Python39\lib\site-packages\gtfs_functions\gtfs_functions.py", line 835, in get_segments
stop_times = self.stop_times
File "C:\OSGeo4W\apps\Python39\lib\site-packages\gtfs_functions\gtfs_functions.py", line 206, in stop_times
self._stop_times = self.get_stop_times()
File "C:\OSGeo4W\apps\Python39\lib\site-packages\gtfs_functions\gtfs_functions.py", line 679, in get_stop_times
trips = self.trips
File "C:\OSGeo4W\apps\Python39\lib\site-packages\gtfs_functions\gtfs_functions.py", line 176, in trips
self._trips = self.get_trips()
File "C:\OSGeo4W\apps\Python39\lib\site-packages\gtfs_functions\gtfs_functions.py", line 621, in get_trips
trips = trips.set_index('service_id').join(
File "C:\Users\idshk\AppData\Roaming\Python\Python39\site-packages\pandas\util_decorators.py", line 311, in wrapper
return func(*args, **kwargs)
TypeError: reset_index() got an unexpected keyword argument 'names'
The text was updated successfully, but these errors were encountered:
Yes, that's the correct file. However, I cannot reproduce the error you mention. As you can see from the following screenshot, I don't get an error with this dataset:
hi,
I try to run Extract segments on the gtfs file linked in this blog post:
https://anitagraser.com/2024/05/04/gtfs-algorithms-about-to-land-in-trajectools/
i.e. this link
https://www.mobilitydata.gv.at/daten/soll-fahrplandaten-gtfshttps://www.mobilitydata.gv.at/daten/soll-fahrplandaten-gtfs
I assume it is the one here:
extract shapes works just fine.
running extract segments, gives the following error:
Traceback (most recent call last):
File "C:\Users/idshk/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_trajectory\qgis_processing\gtfsAlgorithm.py", line 194, in processAlgorithm
segments = self.get_segments(feed, add_avg_speed)
File "C:\Users/idshk/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_trajectory\qgis_processing\gtfsAlgorithm.py", line 230, in get_segments
segments = feed.segments
File "C:\OSGeo4W\apps\Python39\lib\site-packages\gtfs_functions\gtfs_functions.py", line 234, in segments
self._segments = self.get_segments()
File "C:\OSGeo4W\apps\Python39\lib\site-packages\gtfs_functions\gtfs_functions.py", line 835, in get_segments
stop_times = self.stop_times
File "C:\OSGeo4W\apps\Python39\lib\site-packages\gtfs_functions\gtfs_functions.py", line 206, in stop_times
self._stop_times = self.get_stop_times()
File "C:\OSGeo4W\apps\Python39\lib\site-packages\gtfs_functions\gtfs_functions.py", line 679, in get_stop_times
trips = self.trips
File "C:\OSGeo4W\apps\Python39\lib\site-packages\gtfs_functions\gtfs_functions.py", line 176, in trips
self._trips = self.get_trips()
File "C:\OSGeo4W\apps\Python39\lib\site-packages\gtfs_functions\gtfs_functions.py", line 621, in get_trips
trips = trips.set_index('service_id').join(
File "C:\Users\idshk\AppData\Roaming\Python\Python39\site-packages\pandas\util_decorators.py", line 311, in wrapper
return func(*args, **kwargs)
TypeError: reset_index() got an unexpected keyword argument 'names'
The text was updated successfully, but these errors were encountered: