An abstract base class for subtasks that inject fake sources into images to test completeness and
other aspects of the processing.
This class simply adds a mask plane that subclasses should use to mark pixels that have been touched.
This is an abstract base class (abc) and is not intended to be directly used. To create a fake sources
injector, create a child class and re-implement the required methods.
Definition at line 39 of file fakes.py.
def lsst.pipe.tasks.fakes.BaseFakeSourcesTask.run |
( |
|
self, |
|
|
|
exposure, |
|
|
|
background |
|
) |
| |
Add fake sources to the given Exposure, making use of the given BackgroundList if desired.
If pixels in the Exposure are replaced, not added to, extra care should be taken with the background,
mask, and variance planes. The Exposure as given is background-subtracted (using the supplied
background model) and should be returned in the same state.
Definition at line 68 of file fakes.py.