Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Lasso in NW1.0 environment #162

Draft
wants to merge 1 commit into
base: develop_with_ranch
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lasso/metcouncil.py
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,7 @@ def add_rail_ae_connections(
if i == 0:
new_link_gdf = add_snap_gdf.copy()
else:
new_link_gdf = new_link_gdf.append(add_snap_gdf, ignore_index=True, sort=False)
new_link_gdf = pd.concat([new_link_gdf, add_snap_gdf], ignore_index=True, sort=False)

if len(rail_nodes_df) > 0:
new_link_gdf = new_link_gdf[['A', 'model_node_id']].copy()
Expand Down
4 changes: 2 additions & 2 deletions lasso/transit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,7 @@ def shape_gtfs_to_cube(self, row):
on = ['shst_node_id', 'osm_node_id']
)

final_stops_df = stops_with_id_df.append(stops_join_df)
final_stops_df = pd.concat([stops_with_id_df,stops_join_df])
assert len(final_stops_df) == len(stops_df)
self.feed.stops = final_stops_df

Expand All @@ -1381,7 +1381,7 @@ def shape_gtfs_to_cube(self, row):
on = ['shape_shst_node_id', 'shape_osm_node_id']
)

final_shapes_df = shapes_with_id_df.append(shapes_join_df)
final_shapes_df = pd.concat([shapes_with_id_df,shapes_join_df])
assert len(final_shapes_df) == len(shapes_df)

final_shapes_df = final_shapes_df.sort_values(by='shape_pt_sequence', ascending=True)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
lark-parser
jupyter
notebook
pandas==1.3.3
pandas==2.2.1
network-wrangler
unidecode