Skip to content

Commit

Permalink
Merge pull request #209 from jinyan1214/master
Browse files Browse the repository at this point in the history
Fix a bug in NBI bridge class
  • Loading branch information
bacetiner authored May 22, 2024
2 parents f388926 + 6df04a3 commit 04d2a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brails/TranspInventoryGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,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",\
Expand Down

0 comments on commit 04d2a17

Please sign in to comment.