def __init__(self, numpix, **kwargs_single_band): """ :param numpix: number of pixels per axis in the simulation to be modelled :param kwargs_single_band: keyword arguments used to create instance of SingleBand class """ self.numpix = numpix SingleBand.__init__(self, **kwargs_single_band)
def __init__(self, numpix, kwargs_pixel_grid=None, **kwargs_single_band): """ :param numpix: number of pixels per axis in the simulation to be modelled :param kwargs_pixel_grid: if None, uses default pixel grid option if defined, must contain keyword arguments PixelGrid() class :param kwargs_single_band: keyword arguments used to create instance of SingleBand class """ self.numpix = numpix if kwargs_pixel_grid is not None: required_keys = [ 'ra_at_xy_0', 'dec_at_xy_0', 'transform_pix2angle' ] if not all(k in kwargs_pixel_grid for k in required_keys): raise ValueError('Missing 1 or more required' + 'kwargs_pixel_grid parameters') self._kwargs_pixel_grid = kwargs_pixel_grid SingleBand.__init__(self, **kwargs_single_band)