cf.Constructs.clear_filters_applied¶
-
Constructs.clear_filters_applied()[source]¶ Remove the history of filters that have been applied.
The removed history is returned in a tuple. The last element of the tuple describes the last filter applied. Each element is a single-entry dictionary whose key is the name of the filter method that was used, with a value that gives the arguments that were passed to the call of that method. If no filters have been applied then the tuple is empty.
New in version (cfdm): 1.7.0
See also
filter_by_axis,filter_by_data,filter_by_key,filter_by_measure,filter_by_method,filter_by_naxes,filter_by_identity,filter_by_ncdim,filter_by_ncvar,filter_by_property,filter_by_type,inverse_filter,unfilter- Returns
tupleThe removed history of filters that have been applied, ordered from first to last. If no filters have been applied then the tuple is empty.
Examples:
>>> c.filters_applied() ({'filter_by_naxes': (3, 1)}, {'filter_by_identity': ('grid_longitude',)}) >>> c.clear_filters_applied() ({'filter_by_naxes': (3, 1)}, {'filter_by_identity': ('grid_longitude',)}) >>> c.filters_applied() ()