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

traigo_zonificacion returns None in matriz_order when no order is specify #99

Closed alephcero closed 1 year ago

alephcero commented 1 year ago

traigo_zonificacion() reads from geojson here.

When config doesn't specify an order like this:

# Zonificaciones
zonificaciones: 
    geo1: "fracciones_cordoba.geojson"                             
    var1: "link"                                                   
    orden1: 

var matriz_order becomes none and imprimir_matrices_od() fails when running imprime_od() with that matriz_order.

It should return an empty string when order is not specified in config

alephcero commented 1 year ago

Closed by https://github.com/EL-BID/UrbanTrips/commit/0f47fc01ec45f95550376409fdadd343056d5082