Skip to content

Commit 21a1032

Browse files
author
Lachlan Perrier
committed
Running with network accelerate
1 parent 172a183 commit 21a1032

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ osmnx >= 0.12
2525
pandas > 1.0
2626
pydantic < 2.0
2727
pyproj > 2.2.0
28-
pywin32==224 ; sys_platform == 'win32'
28+
pywin32==306 ; sys_platform == 'win32'
2929
pyyaml
30-
pywin32==224 ; sys_platform == 'win32'
30+
pywin32==306 ; sys_platform == 'win32'
3131
rtree
3232
scipy
3333
shapely

tm2py/components/network/highway/highway_assign.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ def _get_assignment_spec(
332332
"normalized_gap": 0.0,
333333
},
334334
"performance_settings": {
335-
"number_of_processors": self.controller.num_processors
335+
"number_of_processors": self.controller.num_processors,
336+
"network_acceleration": self.config.network_acceleration,
336337
},
337338
}
338339
if not path_analysis:

tm2py/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,7 @@ class HighwayConfig(ConfigItem):
957957
generic_highway_mode_code: str = Field(min_length=1, max_length=1)
958958
relative_gaps: Tuple[HighwayRelativeGapConfig, ...] = Field()
959959
max_iterations: int = Field(ge=0)
960+
network_acceleration: bool = Field()
960961
area_type_buffer_dist_miles: float = Field(gt=0)
961962
drive_access_output_skim_path: Optional[str] = Field(default=None)
962963
output_skim_path: pathlib.Path = Field()

0 commit comments

Comments
 (0)