It is possible for _psfex_pywrap.PSFEx to return None rather than a valid PSFEx object. In this case, later calls to get_rec, etc. give somewhat non-obvious AttributeErrors.
It would be nice if the PSFEx.__init__ method could check if the constructor failed with if self._psfex is None: and raising a more descriptive exception about what the problem was, or at least that there was a problem.
It is possible for
_psfex_pywrap.PSFEx
to returnNone
rather than a validPSFEx
object. In this case, later calls toget_rec
, etc. give somewhat non-obvious AttributeErrors.It would be nice if the
PSFEx.__init__
method could check if the constructor failed withif self._psfex is None:
and raising a more descriptive exception about what the problem was, or at least that there was a problem.