-
Notifications
You must be signed in to change notification settings - Fork 1
Filters
Stache edited this page May 24, 2022
·
1 revision
Filters are elements to be applied on Models or on Nodes to do a preliminary sorting. Filters can be used to sort on paths directly, or in a more granular way on the elements of each Node separately.
from argonodes.filters import Filter
keep_placeVisit_only = Filter(model, paths="$.timelineObjects[*].placeVisit")
keep_placeVisit_only(model)
# or
model.apply(keep_placeVisit_only)