Skip to content

Commit

Permalink
convert project card to v1 format
Browse files Browse the repository at this point in the history
  • Loading branch information
yueshuaing committed Sep 5, 2024
1 parent df0a02a commit f771eae
Show file tree
Hide file tree
Showing 144 changed files with 57,846 additions and 57,079 deletions.
1,607 changes: 805 additions & 802 deletions projects/BaseAttribute/TransitPriority.yml

Large diffs are not rendered by default.

887 changes: 445 additions & 442 deletions projects/BaseAttribute/TransitPriorityB.yml

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions projects/BaseAttribute/add_bike_and_walk_attributes.wrangler
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
---
project: add walk and bike attributes
tags:
- 'year_2018_corrections'
dependencies:
prerequisites: []
corequisites: []
conflicts: []
- 'year_2018_corrections'
dependencies: {}
self_obj_type: RoadwayNetwork
note: ''
category: Calculated Roadway
---

import numpy as np

# create a new variable called ‘bike’, where
Expand Down Expand Up @@ -45,7 +43,7 @@ self.links_df['walk'] = np.where(
for c in ['walk', 'bike', 'walk_access', 'bike_access']:
# assign group = 1, 2, 3, 4, 13, 14 or 15
self.links_df[c] = np.where(
self.links_df['assign_group'].isin([1,2,3,4,13,14,15]),
self.links_df['assign_group'].isin([1, 2, 3, 4, 13, 14, 15]),
0,
self.links_df[c]
)
Expand Down
Loading

0 comments on commit f771eae

Please sign in to comment.