photutils/aperture/mask_data.py
def _cutout_image(data, indiv_absolute_extent, overlap):
    """
    Given a set of coordinates, return a cutout corresponding to the
    square containing the circular aperture at a given position.
    """

    if overlap:
        x_min, x_max, y_min, y_max = indiv_absolute_extent
        return data[y_min:y_max, x_min:x_max]
    else:
        return np.array([])

    Given a set of coordinates, return a cutout corresponding to the
    square containing the circular aperture at a given position.
    
Given a set of coordinates, return a cutout corresponding to the
square containing the circular aperture at a given position.
Given a set of coordinates return a cutout corresponding to the square containing the circular aperture at a given position .
def _cutout_image(data, indiv_absolute_extent, overlap):
    if overlap:
        x_min, x_max, y_min, y_max = indiv_absolute_extent
        return data[y_min:y_max, x_min:x_max]
    else:
        return np.array([])
def _cutout_image ( data , indiv_absolute_extent , overlap ) : if overlap : x_min , x_max , y_min , y_max = indiv_absolute_extent return data [ y_min : y_max , x_min : x_max ] else : return np . array ( [ ] )
Given a set of coordinates, return a cutout corresponding to the
square containing the circular aperture at a given position.
Given a set of coordinates return a cutout corresponding to the square containing the circular aperture at a given position .
"""
    Given a set of coordinates, return a cutout corresponding to the
    square containing the circular aperture at a given position.
    """
data
indiv_absolute_extent
overlap