parameters: (self, filter)
return_statement: return (obs_selector, var_selector)
docstring: Return the filter as a row and column selection list.
          No filter on a dimension means 'all'
docstring_summary: Return the filter as a row and column selection list.
          No filter on a dimension means 'all'
docstring_tokens: Return the filter as a row and column selection list . No filter on a dimension means all
function: 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)
function_tokens: 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 )