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

Load fails on feed dates missing #81

Open
vingerha opened this issue Nov 8, 2023 · 4 comments
Open

Load fails on feed dates missing #81

vingerha opened this issue Nov 8, 2023 · 4 comments

Comments

@vingerha
Copy link
Contributor

vingerha commented Nov 8, 2023

Source: https://www.data.gouv.fr/fr/datasets/r/47bc8088-6c72-43ad-a959-a5bbdd1aa14f

Failure while writing FeedInfo(feed_publisher_name='Palmbus', feed_publisher_url='https://www.palmbus.fr', feed_lang='fr', feed_start_date=None, feed_end_date=None, feed_version=None)

feed_info.txt contains indeed no dates.

feed_publisher_name,feed_publisher_url,feed_lang,feed_start_date,feed_end_date,feed_version
Palmbus,https://www.palmbus.fr,fr,,,
@vingerha
Copy link
Contributor Author

Oddly enough, without feed_info.txt...it does continue

@vingerha
Copy link
Contributor Author

It would be 'nice' to be able to exclude things. For my solution I do not need shapes.txt and by removing this from the zip, the extract time and sqlite size reduce substially. Only....the auto-removal from zip is not that easy, it requires to unpack/repack the lot so although I have a solution, would still be nice to be able to exclude things :)

@jarondl
Copy link
Owner

jarondl commented Apr 13, 2024

That is an interesting feature request. So something like a flag? --ignore_tables=shapes ?

@vingerha
Copy link
Contributor Author

Something would already be nice... at the moment I repack the gts by excluding feed_info and shapes as they either are erroneous or not providing value (for this ! integration). Repack means: open zip > read file > if OK > add to new zip > repeat till end ... then pygtfs. On a side note, For the netherlands gtfs, this takes hours, would it be an idea to apply conditions afterwards to speed it up?

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

No branches or pull requests

2 participants