tests.fitpsf.utils module
Class Inheritance Diagram

A collection of functions used by the fitpsf unit tests.
- tests.fitpsf.utils.make_image_and_source_list(sources, extra_variables, subpix_map, filenames)[source]
Create an image and a list of the sources in it ready for psf fitting.
- Parameters:
sources –
A list of dictionaries with at least the following keywords:
x: The x coordinate of the source center.
y: The y coordinate of the source center.
psf: An instance of some sub-class of PSFBase giving the sources’s PSF. It should already be scaled to the desired flux.
Additional keywords may be added to the source list and hence available as variables for PSF fitting by listing the names in the extra_variables argument.
filenames –
The names of the files to create:
image: The filename to save the image under. If a file with this name exists it is overwritten.
source_list: The filename to add the source list to. If a file with this name exists it appended to.
psf_fit: The filename to use for PSF fitting results.
extra_variables – A list of additional keywords from sources to add to the source list and the order in which those should be added. The corresponding entries in sources must be floating point values.
subpix_map – The sub-pixel map to impose on the image. For more details see same name argument of Image.add_source.
- Returns:
None