pytuflow.TPC.ids#
- TPC.ids(filter_by=None)#
Returns all the available IDs for the output.
The
filter_byis an optional input that can be used to filter the return further. Valid filters for theTPCclass are:Domain filters:
1d2d(orpo)rl(or0d)
Geometry filters:
nodechannelpoint- (for 2d and rl domains only - usenodefor 1d domain)line- (for 2d and rl domains only - usechannelfor 1d domain)polygon(orregion)
Data type filters:
[data_type]: The data_type to filter the ids by.
Combine filters:
[filter1]/[filter2]/...: (use/to delim).
- Parameters:
filter_by (str, optional) – The string to filter the IDs by.
- Returns:
The available IDs.
- Return type:
list[str]
Examples
Get the IDs for all
poresults:>>> res = TPC('/path/to/result.tpc') >>> res.ids('po') ['po_poly', 'po_point', 'po_line']
Get the IDs for all
rl lineresults:>>> res.ids('rl/line') ['rl_line']