lsst.afw  14.0-63-g921e36d6a
Public Member Functions | List of all members
lsst.afw.image.utils.CalibNoThrow Class Reference
Inheritance diagram for lsst.afw.image.utils.CalibNoThrow:

Public Member Functions

def __enter__ (self)
 
def __exit__ (self, args)
 

Detailed Description

A class intended to be used with python's with statement, to return NaNs for negative fluxes
instead of raising exceptions (exceptions may be raised for other purposes).

E.g.
 with CalibNoThrow():
     ax.plot([exposure.getCalib().getMagnitude(a) for a in candAmps], zGood[:,k], 'b+')

Definition at line 97 of file utils.py.

Member Function Documentation

◆ __enter__()

def lsst.afw.image.utils.CalibNoThrow.__enter__ (   self)

Definition at line 106 of file utils.py.

◆ __exit__()

def lsst.afw.image.utils.CalibNoThrow.__exit__ (   self,
  args 
)

Definition at line 110 of file utils.py.


The documentation for this class was generated from the following file: