def _getslice(self, maps):
        """Determines how to slice the scratch for returning values."""
        invals =  maps[list(self.inputs)[0]]
        if not isinstance(invals, (numpy.ndarray, list)):
            getslice = 0
        else:
            getslice = slice(None, None)
        return getslice
def _getslice ( self , maps ) : invals = maps [ list ( self . inputs ) [ 0 ] ] if not isinstance ( invals , ( numpy . ndarray , list ) ) : getslice = 0 else : getslice = slice ( None , None ) return getslice
Determines how to slice the scratch for returning values.