Skip to content

Commit

Permalink
Running with network accelerate
Browse files Browse the repository at this point in the history
  • Loading branch information
Lachlan Perrier committed Aug 6, 2024
1 parent 172a183 commit 21a1032
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ osmnx >= 0.12
pandas > 1.0
pydantic < 2.0
pyproj > 2.2.0
pywin32==224 ; sys_platform == 'win32'
pywin32==306 ; sys_platform == 'win32'
pyyaml
pywin32==224 ; sys_platform == 'win32'
pywin32==306 ; sys_platform == 'win32'
rtree
scipy
shapely
Expand Down
3 changes: 2 additions & 1 deletion tm2py/components/network/highway/highway_assign.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,8 @@ def _get_assignment_spec(
"normalized_gap": 0.0,
},
"performance_settings": {
"number_of_processors": self.controller.num_processors
"number_of_processors": self.controller.num_processors,
"network_acceleration": self.config.network_acceleration,
},
}
if not path_analysis:
Expand Down
1 change: 1 addition & 0 deletions tm2py/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,7 @@ class HighwayConfig(ConfigItem):
generic_highway_mode_code: str = Field(min_length=1, max_length=1)
relative_gaps: Tuple[HighwayRelativeGapConfig, ...] = Field()
max_iterations: int = Field(ge=0)
network_acceleration: bool = Field()
area_type_buffer_dist_miles: float = Field(gt=0)
drive_access_output_skim_path: Optional[str] = Field(default=None)
output_skim_path: pathlib.Path = Field()
Expand Down

0 comments on commit 21a1032

Please sign in to comment.