The coordinates.GridCoords class creates an object that stores the dimensions of the image plane grid and many other useful derived grids and quantities. The only real parameters of this class are cell_size and npix---every other quantity is derived.
Rather than instantiate these as real instance attributes in __init__, it would be more memory efficient to make all of these derived quantities their own methods that could be decorated with @property. This might even enable some additional error checking in some cases.
The
coordinates.GridCoordsclass creates an object that stores the dimensions of the image plane grid and many other useful derived grids and quantities. The only real parameters of this class arecell_sizeandnpix---every other quantity is derived.Rather than instantiate these as real instance attributes in
__init__, it would be more memory efficient to make all of these derived quantities their own methods that could be decorated with@property. This might even enable some additional error checking in some cases.