.set_node_coordinate_file(+)
TntpNetworkReaderSettings method
Description
Set the file location containing the network node coordinates to be used by the TntpNetworkReader
.
This is a mandatory setting the user is expected to set.
Signature
.set_node_coordinate_file(input_file_location: str)
with
Parameter | Type | Unit | Default | Description |
---|---|---|---|---|
input_file_location |
str |
None |
N/A | The node coordinate input file |
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_node_coordinate_file("<file_location>")
See also
N/A
Source code
Class TntpNetworkReaderSettingsWrapper
in converterwrappers.py