Skip to content

Commit

Permalink
allow user specifying output cube network name
Browse files Browse the repository at this point in the history
  • Loading branch information
ychtw committed May 16, 2024
1 parent 926d2ac commit 04e40e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lasso/roadway.py
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,7 @@ def write_roadway_as_fixedwidth(
output_node_header_width_txt: str = None,
output_cube_network_script: str = None,
drive_only: bool = False,
output_cube_network_name: str = "complete_network.net",
):
"""
Writes out fixed width file.
Expand Down Expand Up @@ -1902,7 +1903,7 @@ def write_roadway_as_fixedwidth(

s = s[:-1]
s += '\n'
s += 'FILEO NETO = "complete_network.net"\n\n'
s += 'FILEO NETO = "{}"\n\n'.format(output_cube_network_name)
s += ' ZONES = {}\n\n'.format(self.parameters.zones)
s += '; Trim leading whitespace from string variables\n'
# todo: The below should be built above based on columns that are strings
Expand Down

0 comments on commit 04e40e0

Please sign in to comment.