cdms2.axis:FileVirtualAxis¶
-
FileVirtualAxis.
searchPredicate
(predicate, tag)¶ Apply a truth-valued predicate.
- Parameters
- predicate: (function)
- tag: (str/None)
node tag
- Returns
- ——-
- result: (list)
Return a list containing a single instance: [self] if the predicate is true and either tag is None or matches the object node tag. If the predicate returns false, return an empty list