.set_output_directory(+)
MatsimNetworkWriterSettings method
Description
Set an output directory to use for the network output file. This settings is expected to be explicitly set by the user, otherwise the writer will fail.
Signature
.set_output_directory(output_dir:str)
with
Parameter | Type | Unit | Default | Description |
---|---|---|---|---|
output_dir |
String |
None |
N/A | The output directory to use |
Return type
N/A
Example 1 - minimum configuration
from planit import *
# create a network converter
planit_instance = Planit()
network_converter = planit_instance.converter_factory.create(ConverterType.NETWORK)
# Open Street Map (OSM) network reader
osm_reader = network_converter.create_reader(NetworkReaderType.OSM, "Australia")
osm_reader.settings.set_input_file("<path_to_input_file>")
# MATSIM network writer
matsim_writer = network_converter.create_writer(NetworkWriterType.MATSIM)
matsim_writer.settings.set_output_directory("<path_to_output_dir>")
# perform conversion
network_converter.convert(osm_reader,matsim_writer)
See also
N/A
Source code
Class WriterSettingsWrapper
in converterwrappers.py