transitland / transitland-processing-animation

Animating scheduled transit trips using the Transitland API and Processing
MIT License
280 stars 54 forks source link

TransLink feed does not download (ValueError: No objects to concatenate) #15

Open jwu56 opened 5 years ago

jwu56 commented 5 years ago

Hi,

I have been playing around with this transit software and have tried many different ways to download the data from my local service operator, Translink and convert it into a map. The examples work fine, however, the operator in my area operates two feeds which ends up being a couple of trillion entries. I assume that it is a server error but sometimes the downloading just stops and I get this error message:

failed operators: [b'o-r-translink']
Concatenating individual operator outputs.
Traceback (most recent call last):
  File "transitflow.py", line 404, in <module>
    df = concatenate_csvs("sketches/{}/{}/data/indiv_operators".format(OUTPUT_NAME, DATE))
  File "transitflow.py", line 184, in concatenate_csvs
    concatenated_df   = pd.concat(df_from_each_file, ignore_index=True)
  File "C:\Program Files\Python37\lib\site-packages\pandas\core\reshape\concat.py", line 255, in concat
    sort=sort,
  File "C:\Program Files\Python37\lib\site-packages\pandas\core\reshape\concat.py", line 304, in __init__
    raise ValueError("No objects to concatenate")
ValueError: No objects to concatenate

I have also tried to change the amount of entries per page, and even setting it to 1 and leaving it on the whole night still returned a similar error message.