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

Some rows in error removed but nothing is logged #11

Open
christopheblin opened this issue Sep 10, 2021 · 0 comments
Open

Some rows in error removed but nothing is logged #11

christopheblin opened this issue Sep 10, 2021 · 0 comments

Comments

@christopheblin
Copy link

I don't know if this is a bug or if this is asking for an improvement

Use the GTFS file at https://www.data.gouv.fr/fr/datasets/r/e2942b55-3623-4509-880c-8af3bdc0ff79

The agency.txt is

agency_id,agency_name,agency_url,agency_timezone,agency_phone,agency_lang,agency_fare_url,agency_email,agency_primary
11215498,Keolis Bassin de Thau,www.mobilite.agglopole.fr,Europe/Paris,+33467530101,fr,,,1

as you can see agency_url is not valid and so the row is removed from output -> fine

but nothing in the logs indicate this

# cat /data/gtfs/agency.txt 
agency_id,agency_name,agency_url,agency_timezone,agency_phone,agency_lang,agency_fare_url,agency_email,agency_primary
11215498,Keolis Bassin de Thau,www.mobilite.agglopole.fr,Europe/Paris,+33467530101,fr,,,1
/ # gtfstidy --fix -EAPICOS -s -c --keep-col-order -o /data/gtfs_clean /data/gtfs
Parsing GTFS feed in '/data/gtfs' ... done.
Removing unreferenced entries... done. (-0 trips [-0.00%], -0 stops [-0.00%], -0 shapes [-0.00%], -0 services [-0.00%], -0 routes [-0.00%], -0 agencies [-0.00%])
Removing redundant agencies... done. (-0 agencies [-NaN%])
Removing redundant stops... done. (-0 stops [-0.00%])
Reclustering stops... done. (-0 clusters) [-0.00%]
Remeasuring shapes... done. (0 shapes remeasured)
Minimizing shapes... done. (-0 shape points [-0.00%])
Removing redundant shapes... done. (-0 shapes [-0.00%])
Removing redundant trips... done. (-0 trips [-0.00%])
Removing unreferenced entries... done. (-0 trips [-0.00%], -0 stops [-0.00%], -0 shapes [-0.00%], -0 services [-0.00%], -0 routes [-0.00%], -0 agencies [-0.00%])
Removing service duplicates... done. (-0 services [-0.00%])
Minimizing services... done. (+0 calendar_dates.txt entries [+NaN%], +0 calendar.txt entries [+0.00%])
Outputting GTFS feed to '/data/gtfs_clean'... done.
/ # cat /data/gtfs_clean/agency.txt 
agency_id,agency_name,agency_url,agency_timezone,agency_lang,agency_phone,agency_fare_url,agency_email

Is it possible to have a log like

Removing errors... done. (-0 trips [-0.00%], -0 stops [-0.00%], -0 shapes [-0.00%], -0 services [-0.00%], -0 routes [-0.00%], -1 agencies [100.00%])
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

1 participant