Open kuanb opened 7 years ago
As per our discussion IRL (w/ Sam at Maptime), we observed that this line (https://github.com/UDST/urbanaccess/blob/2f37f8ea8337fd65d654e9506b3c76f753af22db/urbanaccess/gtfs/load.py#L59) and the corresponding actions if true are designed to deal with GTFS zip files stores as .txt rather than .csv.
.txt
.csv
Alternately, just read in the csv with file type set as txt. Check the file type via something like foo.lower().endswith('.txt') and then, if true, then go ahead and read in as a text file.
csv
txt
foo.lower().endswith('.txt')
Thanks Kuan. Can address this at a later time.
As per our discussion IRL (w/ Sam at Maptime), we observed that this line (https://github.com/UDST/urbanaccess/blob/2f37f8ea8337fd65d654e9506b3c76f753af22db/urbanaccess/gtfs/load.py#L59) and the corresponding actions if true are designed to deal with GTFS zip files stores as
.txt
rather than.csv
.Alternately, just read in the
csv
with file type set astxt
. Check the file type via something likefoo.lower().endswith('.txt')
and then, if true, then go ahead and read in as a text file.