lsst.afw  16.0-79-g81b2eb930+1
Public Member Functions | List of all members
lsst.afw.image.utils.CalibNoThrow Class Reference

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 71 of file utils.py.

Member Function Documentation

◆ __enter__()

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

Definition at line 80 of file utils.py.

◆ __exit__()

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

Definition at line 84 of file utils.py.


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