PyTuflow: Difference between revisions
Content deleted Content added
Ellis Symons (talk | contribs) |
Ellis Symons (talk | contribs) No edit summary |
||
Line 36:
|list of Result Types
|-
|rowspan='1'|<b>[[#channels|channels]] ()</b>
|rowspan='1'|Returns a list of all the channels IDs in the results
|''list'' Channel IDs
Line 310:
for rt in chan_rt:
print(rt)
else:
# did not load correctly, print error message to console
print(message)
</pre>
==channels==
<b>channels ()</b><br>
Returns a list of all the channels IDs in the results<br>
;Parameters:
: -
;Returns:
: '''Out:''' ''list''
:: List of channels e.g. ['Chan_A', 'Chan_B', 'Chan_C']
'''Example'''
<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:
chans = res.channels()
# print to console
print('Channels:')
for chan in chans:
print(chan)
else:
# did not load correctly, print error message to console
| |||