Skip to content

Commit

Permalink
base_roadway_network should be ModelRoadwayNetwork
Browse files Browse the repository at this point in the history
  • Loading branch information
yueshuaing committed Sep 17, 2024
1 parent 1463439 commit e6f5d08
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lasso/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,11 @@ def create_project(
)
base_roadway_network.split_properties_by_time_period_and_category()
elif base_roadway_network:
if not isinstance(base_roadway_network, ModelRoadwayNetwork):
base_roadway_network = ModelRoadwayNetwork.from_RoadwayNetwork(
roadway_network_object=base_roadway_network,
parameters=parameters
)
base_roadway_network.split_properties_by_time_period_and_category()
else:
msg = "No base roadway network."
Expand Down

0 comments on commit e6f5d08

Please sign in to comment.