.set_network_file(+)
TntpNetworkReaderSettings method
Description
Set the network input file location to be used by the TntpNetworkReader
. This is a mandatory setting the user is expected to set.
Signature
.set_network_file(input_file_location: str)
with
Parameter | Type | Unit | Default | Description |
---|---|---|---|---|
input_file_location |
str |
None |
N/A | The network input file to extract the links from |
Return type
N/A
Example 1
from planit import *
# create a network converter
planit_instance = Planit()
network_converter = planit_instance.converter_factory.create(ConverterType.NETWORK)
# TNTP network reader
reader = network_converter.create_reader(NetworkReaderType.TNTP)
reader.settings.set_network_file("<file_location>")
See also
N/A
Source code
Class TntpNetworkReaderSettingsWrapper
in converterwrappers.py