Skip to content

Commit

Permalink
osm lanes fix inherited from AlaCC
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-sijia committed Sep 20, 2024
1 parent dfcf88e commit b032853
Show file tree
Hide file tree
Showing 2 changed files with 137,190 additions and 137,188 deletions.
4 changes: 3 additions & 1 deletion lasso/mtc.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ def determine_number_of_lanes(
"""
osm_df = pd.read_csv(osm_lanes_attributes)
osm_df = osm_df.rename(columns = {"min_lanes": "osm_min_lanes", "max_lanes": "osm_max_lanes"})

osm_df.loc[osm_df['oneWay'].str.contains('False'), 'osm_min_lanes'] = np.ceil(osm_df['osm_min_lanes'] / 2)
osm_df.loc[osm_df['oneWay'].str.contains('False'), 'osm_max_lanes'] = np.ceil(osm_df['osm_max_lanes'] / 2)

tam_df = pd.read_csv(tam_tm2_attributes)
tam_df = tam_df[['shstReferenceId', 'lanes']].rename(columns = {"lanes": "tm2_lanes"})

Expand Down
Loading

0 comments on commit b032853

Please sign in to comment.