WfAlgorithmFactory

class lsst.ts.wep.estimation.WfAlgorithmFactory

Bases: object

Factory for loading different wavefront estimation algorithms.

Methods Summary

createWfAlgorithm(algoName[, algoConfig])

Return a configured WfAlgorithm.

Methods Documentation

static createWfAlgorithm(algoName: Union[WfAlgorithmName, str], algoConfig: Optional[Union[dict, WfAlgorithm]] = None)

Return a configured WfAlgorithm.

Parameters:
algoNameWfAlgorithmName or str

A WfAlgorithmName enum or the corresponding string, indicating which WfAlgorithm to use.

algoConfigstr or dict or WfAlgorithm, optional

Algorithm configuration. If a string, it is assumed this points to a config file, which is used to configure the algorithm. If the path begins with “policy:”, then it is assumed the path is relative to the policy directory. If a dictionary, it is assumed to hold keywords for configuration. If a WfAlgorithm object, that object is just used. If None, the algorithm defaults are used. (the default is None)