class documentation
class Base:
Known subclasses: aopp_deconv_tool.algorithm.deconv.clean_modified.CleanModified
, aopp_deconv_tool.algorithm.deconv.lucy_richardson.LucyRichardson
Implements basic iteration of an algorithm.
Algorithm parameters are set on class construction, data to operate upon is set when an instance is called.
Method | __call__ |
Apply algorithm to obs and psf , parameters are set at instantiation, but can be overwritten for a single call by passing new values via **kwargs . Initialises and iterates the algorithm. Subclasses should overload the ... |
Method | get |
Undocumented |
Method | set |
Undocumented |
Class Variable | final |
Undocumented |
Class Variable | n |
Undocumented |
Class Variable | n |
Undocumented |
Class Variable | post |
Undocumented |
Class Variable | post |
Undocumented |
Class Variable | pre |
Undocumented |
Class Variable | pre |
Undocumented |
Instance Variable | progress |
Undocumented |
Method | _init |
Perform any initialisation that needs to be done before the algorithm runs. |
Method | _iter |
Perform a single iteration of the algorithm. |
Method | _set |
Undocumented |
Instance Variable | _components |
Undocumented |
Instance Variable | _i |
Undocumented |
Instance Variable | _last |
Undocumented |
Instance Variable | _residual |
Undocumented |
def __call__(self, obs:
np.ndarray
, psf: np.ndarray
, **kwargs) -> tuple[ np.ndarray, np.ndarray, int]
:
¶
Apply algorithm to obs
and psf
, parameters are set at instantiation, but can
be overwritten for a single call by passing new values via **kwargs
. Initialises and
iterates the algorithm. Subclasses should overload the _init_algorithm
and _iter
methods.
- # Arguments #
- obs : np.ndarray
- Numpy array containing observation data to deconvolve
- psf : np.ndarray
- Numpy array containing the point-spread-function for the observation.
- **kwargs
- Other passed arguments are assumed to overwrite algorithm parameters during a singular invocation.
- # Returns #
- self._components : np.ndarray
- Components found that make up the deconvolved image, ideally these components convolved with
psf
will giveobs
- self._residual : np.ndarray
- The residual between the convolution of
self._components with
psf
, andobs
- self._i : int
- The number of iterations performed before terminating
overridden in
aopp_deconv_tool.algorithm.deconv.clean_modified.CleanModified
, aopp_deconv_tool.algorithm.deconv.lucy_richardson.LucyRichardson
Perform any initialisation that needs to be done before the algorithm runs.
overridden in
aopp_deconv_tool.algorithm.deconv.clean_modified.CleanModified
, aopp_deconv_tool.algorithm.deconv.lucy_richardson.LucyRichardson
Perform a single iteration of the algorithm.