urbanaccess icon indicating copy to clipboard operation
urbanaccess copied to clipboard

Read in txt files as txt files, rather than deal with encoding errors

Open kuanb opened this issue 8 years ago • 1 comments

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 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.

kuanb avatar May 17 '17 03:05 kuanb

Thanks Kuan. Can address this at a later time.

sablanchard avatar May 17 '17 17:05 sablanchard