(self, filter)
return (obs_selector, var_selector)
Return the filter as a row and column selection list.
        No filter on a dimension means 'all'
Return the filter as a row and column selection list.
        No filter on a dimension means 'all'
Return the filter as a row and column selection list . No filter on a dimension means all
def _filter_to_mask(self, filter):
        """
        Return the filter as a row and column selection list.
        No filter on a dimension means 'all'
        """
        shape = self.get_shape()
        var_selector = None
        obs_selector = None
        if filter is not None:
            if Axis.OBS in filter:
                obs_selector = self._axis_filter_to_mask(Axis.OBS, filter["obs"], shape[0])

            if Axis.VAR in filter:
                var_selector = self._axis_filter_to_mask(Axis.VAR, filter["var"], shape[1])

        return (obs_selector, var_selector)
def _filter_to_mask ( self , filter ) : shape = self . get_shape ( ) var_selector = None obs_selector = None if filter is not None : if Axis . OBS in filter : obs_selector = self . _axis_filter_to_mask ( Axis . OBS , filter [ "obs" ] , shape [ 0 ] ) if Axis . VAR in filter : var_selector = self . _axis_filter_to_mask ( Axis . VAR , filter [ "var" ] , shape [ 1 ] ) return ( obs_selector , var_selector )