Closed jGaboardi closed 4 years ago
There appears to be a major bug that has cropped up since the dissertation version on this code.
utils.update_adj()
def_graph_elems=True
To reproduce:
bbox = (-84.279,30.480,-84.245,30.505) f = "zip://test_data/Edges_Leon_FL_2010.zip!Edges_Leon_FL_2010.shp" gdf = geopandas.read_file(f, bbox=bbox) gdf = gdf.to_crs("epsg:2779") yes_roads = gdf["MTFCC"].str.startswith("S") roads = gdf[yes_roads].copy() kwargs = {"s_data": roads.copy(), "from_raw": True} attr_kws = {"attr1": ATTR1, "attr2": ATTR2} kwargs.update(attr_kws) comp_kws = {"record_components": True, "largest_component":True} kwargs.update(comp_kws) graph_elems_kws = {"def_graph_elems": True} kwargs.update(graph_elems_kws) geom_kws = {"record_geom": True, "calc_len": True} kwargs.update(geom_kws) mtfcc_kws = {"discard_segs": discard_segs, "skip_restr": SKIP_RESTR} mtfcc_kws.update({"mtfcc_split": INTRST, "mtfcc_intrst": INTRST}) mtfcc_kws.update({"mtfcc_split_grp": SPLIT_GRP, "mtfcc_ramp": RAMP}) mtfcc_kws.update({"mtfcc_split_by": SPLIT_BY, "mtfcc_serv": SERV_DR}) kwargs.update(mtfcc_kws) net = tigernet.Network(**kwargs)
IndexError: list index out of range
Addressed in c88966c.
There appears to be a major bug that has cropped up since the dissertation version on this code.
utils.update_adj()
, but can't pinpoint where exactly it happens.def_graph_elems=True
To reproduce: