From a868419d1b8f4352e73fa0f94cdc6e00f1bd5f22 Mon Sep 17 00:00:00 2001 From: jinyan1214 Date: Tue, 21 May 2024 22:14:53 -0700 Subject: [PATCH] Fix a bug in bridge class --- brails/TranspInventoryGenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brails/TranspInventoryGenerator.py b/brails/TranspInventoryGenerator.py index 0b40fad..719e23a 100644 --- a/brails/TranspInventoryGenerator.py +++ b/brails/TranspInventoryGenerator.py @@ -249,7 +249,7 @@ def formatBridges(minimumHAZUS, connectivity, bridges_gdf, lengthUnit): bnodeDF = gpd.GeoDataFrame(columns = ["nodeID", "geometry"], crs=bridges_gdf.crs) ## Format bridge items bridges_gdf["BridgeClass"] = bridges_gdf['structure_kind'].apply(int)*100+\ - bridges_gdf['structure_kind'].apply(int) + bridges_gdf['structure_type'].apply(int) bridges_gdf = bridges_gdf.rename(columns = {'structure_number':"StructureNumber",\ "year_built":"YearBuilt", "main_unit_spans":"NumOfSpans",\ 'max_span_len_mt':"MaxSpanLength","state_code":"StateCode",\