PyTuflow: Difference between revisions

Content deleted Content added
No edit summary
Line 158:
|''int'' Count
|-
|rowspan='1'|<b>[[#rlRegionCount|rlRegionCount]] ()</b>
|rowspan='1'|Returns the total number of region Reporting Locations in the results
|''int'' Count
Line 1,393:
# print to console
print('{0} RL Point objects in results.format(node_point_count))
else:
# did not load correctly, print error message to console
print(message)
</pre>
 
==rlRegionCount==
<b>rlRegionCount ()</b><br>
Returns the total number of region Reporting Locations in the results<br>
;Parameters:
: -
;Returns:
: '''Count:''' ''int''
:: Number of RL Region objects
'''Example'''<br>
<pre>
import pytuflow as tu
 
# Initialise result class
res = tu.ResData()
 
# load .tpc result file
path = r'C:\TUFLOW\results\M04_5m_001.tpc'
err, message = res.load(path)
 
# check results were loaded successfully before calling function
if not err:
rl_region_count = res.rlRegionCount()
# print to console
print('{0} RL Region objects in results.format(node_region_count))
else:
# did not load correctly, print error message to console