bolt/spark/chunk.py
def getmask(inds, n):
        """
        Obtain a binary mask by setting a subset of entries to true.

        Parameters
        ----------
        inds : array-like
            Which indices to set as true.

        n : int
            The length of the target mask.
        """
        inds = asarray(inds, 'int')
        mask = zeros(n, dtype=bool)
        mask[inds] = True
        return mask
def getmask(inds, n):
        inds = asarray(inds, 'int')
        mask = zeros(n, dtype=bool)
        mask[inds] = True
        return mask
def getmask ( inds , n ) : inds = asarray ( inds , 'int' ) mask = zeros ( n , dtype = bool ) mask [ inds ] = True return mask
Obtain a binary mask by setting a subset of entries to true.

        Parameters
        ----------
        inds : array-like
            Which indices to set as true.

        n : int
            The length of the target mask.
Obtain a binary mask by setting a subset of entries to true .