Skip to content

Commit

Permalink
fixed number of lanes on some two-way links
Browse files Browse the repository at this point in the history
  • Loading branch information
yueshuaing committed Jul 2, 2024
1 parent 0c01539 commit 76fe87d
Show file tree
Hide file tree
Showing 2 changed files with 137,189 additions and 137,187 deletions.
2 changes: 2 additions & 0 deletions lasso/mtc.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ def determine_number_of_lanes(
"""
mtc_osm_df = pd.read_csv(mtc_osm_lanes_attributes)
mtc_osm_df = mtc_osm_df.rename(columns = {"min_lanes": "osm_min_lanes", "max_lanes": "osm_max_lanes"})
mtc_osm_df.loc[mtc_osm_df['oneWay'].str.contains('False'), 'osm_min_lanes'] = np.ceil(mtc_osm_df['osm_min_lanes'] / 2)
mtc_osm_df.loc[mtc_osm_df['oneWay'].str.contains('False'), 'osm_max_lanes'] = np.ceil(mtc_osm_df['osm_max_lanes'] / 2)

sj_osm_df = pd.read_csv(sj_osm_lanes_attributes)
sj_osm_df = sj_osm_df.rename(columns = {'osm_lanes_min' : 'osm_min_lanes', 'osm_lanes_max':'osm_max_lanes'})
Expand Down
Loading

0 comments on commit 76fe87d

Please sign in to comment.