pixel_clusterizer/cluster_functions.py
def _pixel_masked(hit, array):
    ''' Checks whether a hit (column/row) is masked or not. Array is 2D array with boolean elements corresponding to pixles indicating whether a pixel is disabled or not.
    '''
    if array.shape[0] > hit["column"] and array.shape[1] > hit["row"]:
        return array[hit["column"], hit["row"]]
    else:
        return False
def _pixel_masked(hit, array):
    ''' Checks whether a hit (column/row) is masked or not. Array is 2D array with boolean elements corresponding to pixles indicating whether a pixel is disabled or not.
    '''
    if array.shape[0] > hit["column"] and array.shape[1] > hit["row"]:
        return array[hit["column"], hit["row"]]
    else:
        return False
def _pixel_masked ( hit , array ) : if array . shape [ 0 ] > hit [ "column" ] and array . shape [ 1 ] > hit [ "row" ] : return array [ hit [ "column" ] , hit [ "row" ] ] else : return False
Checks whether a hit (column/row) is masked or not. Array is 2D array with boolean elements corresponding to pixles indicating whether a pixel is disabled or not.
Checks whether a hit ( column / row ) is masked or not . Array is 2D array with boolean elements corresponding to pixles indicating whether a pixel is disabled or not .