EL-BID / UrbanTrips

An open-source library to process smart card payment data, infer destination and get meaningful KPI
https://el-bid.github.io/UrbanTrips/
Other
24 stars 2 forks source link

Fix visualize_route_section_load #89

Closed alephcero closed 1 year ago

alephcero commented 1 year ago

When in sample data id_linea = 28 there is a tile error in contextily here

Traceback (most recent call last):
  File "C:\Users\sanap\miniconda3\envs\urb3\lib\site-packages\contextily\tile.py", line 396, in _retryer
    request.raise_for_status()
  File "C:\Users\sanap\miniconda3\envs\urb3\lib\site-packages\requests\models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://tiles.stadiamaps.com/tiles/stamen_toner_lite/15/11004/19804.png

At the same time, running this function should be in create_viz.py script and not over all lines, but sampling 3 from the db