.set_input_directory(+)
PlanitNetworkReaderSettings method
Description
Set the input directory to use by the PlanitIntermodalReader
. This is a mandatory setting the user is expected to set.
The reader will then look through the available files, and use the first suitable file that is compatible with the native network/zoning XML format.
Signature
.set_input_directory(input_dir:str)
with
Parameter | Type | Unit | Default | Description |
---|---|---|---|---|
input_dir |
String |
None |
N/A | The input directory to extract the network/zoning from |
Return type
N/A
Example 1
from planit import *
# create an intermodal converter
planit_instance = Planit()
intermodal_converter = planit_instance.converter_factory.create(ConverterType.INTERMODAL)
# PLANit intermodal reader
planit_reader = intermodal_converter.create_reader(IntermodalReaderType.PLANIT)
planit_reader.settings.set_input_directory("<path_to_input_files>")
See also
N/A
Source code
Class ReaderSettingsWrapper
in converterwrappers.py
Last modified January 1, 0001