Filter ADAFs Predicate¶
-
class
node_filter_list.
FilterADAFsPredicate
(*args, **kwargs)[source]¶ Filter nodes with predicate takes a configurable predicate function (a function that returns True or False) from the configuration and uses it to decide which inputs to include in the output.
The function is applied for each input element in the list and for each element where the function returned True the element is also included in the output.
Examples (with table as the element type):
Remove tables with zero length columns:
lambda table: table.number_of_columns() > 0
Remove empty tables:
lambda table: not table.is_empty()
Filter a list of ADAFs using a predicate.
Inputs: - Input data ADAFs : ADAFs
Incoming list of ADAFs.
Outputs: - Output data ADAFs : ADAFs
Outgoing, filtered, list of ADAFs.
- Output index Table : Table
Outgoing Table, containing ‘filter’ - a boolean index column.