Difference between revisions of "PyTuflow"

From Tuflow
Jump to navigation Jump to search
Line 18: Line 18:
 
'''Methods'''
 
'''Methods'''
 
{|class="wikitable" style="text-align: center;"
 
{|class="wikitable" style="text-align: center;"
!colspan="4" style="background-color:#005581; font-weight:bold; color:white;"|Example Models
+
!colspan="4" style="background-color:#005581; font-weight:bold; color:white;"|Methods
 
|-
 
|-
|<b>Method</b>||<b>Description</b>||<b>Returns</b></b>
+
|<b>Method</b>||<b>Description</b>||<b>Inputs</b></b>||<b>Returns</b>
 
|-
 
|-
|rowspan="3"|<b>Basic 2D Model</b>
+
|rowspan='1'|<b>channelConnectionCount</b>
|Write empty files
+
|rowspan='1'|Returns a list of the channels connected to a given node
|EG00_Empty_5m_000.tcf
+
|(str) Node ID
|N/A
+
|(list) Channel IDs
 
|-
 
|-
 
|}
 
|}

Revision as of 14:55, 8 February 2019

Class: ResData

Class for TUFLOW time series results.

Initialised as an empty object, or with results with a *.tpc in TUFLOW 2016 release and later or *.info in TUFLOW 2013 release.

import pytuflow as tu


res = tu.ResData()  # initialising as an empty object

# or

res = tu.ResData('M01_5m_001.tpc')  # initialising with results

Methods

Methods
Method Description Inputs Returns
channelConnectionCount Returns a list of the channels connected to a given node (str) Node ID (list) Channel IDs