lsst.cp.pipe  20.0.0-1-g32a200e+6
Public Member Functions | List of all members
lsst.cp.pipe.ptc.PhotonTransferCurveDataset Class Reference

Public Member Functions

def __init__ (self, ampNames)
 
def __setattr__ (self, attribute, value)
 
def getVisitsUsed (self, ampName)
 
def getGoodAmps (self)
 

Detailed Description

A simple class to hold the output data from the PTC task.

The dataset is made up of a dictionary for each item, keyed by the
amplifiers' names, which much be supplied at construction time.

New items cannot be added to the class to save accidentally saving to the
wrong property, and the class can be frozen if desired.

inputVisitPairs records the visits used to produce the data.
When fitPtcAndNonLinearity() is run, a mask is built up, which is by definition
always the same length as inputVisitPairs, rawExpTimes, rawMeans
and rawVars, and is a list of bools, which are incrementally set to False
as points are discarded from the fits.

PTC fit parameters for polynomials are stored in a list in ascending order
of polynomial term, i.e. par[0]*x^0 + par[1]*x + par[2]*x^2 etc
with the length of the list corresponding to the order of the polynomial
plus one.

Definition at line 204 of file ptc.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.cp.pipe.ptc.PhotonTransferCurveDataset.__init__ (   self,
  ampNames 
)

Definition at line 224 of file ptc.py.

Member Function Documentation

◆ __setattr__()

def lsst.cp.pipe.ptc.PhotonTransferCurveDataset.__setattr__ (   self,
  attribute,
  value 
)
Protect class attributes

Definition at line 257 of file ptc.py.

◆ getGoodAmps()

def lsst.cp.pipe.ptc.PhotonTransferCurveDataset.getGoodAmps (   self)

Definition at line 281 of file ptc.py.

◆ getVisitsUsed()

def lsst.cp.pipe.ptc.PhotonTransferCurveDataset.getVisitsUsed (   self,
  ampName 
)
Get the visits used, i.e. not discarded, for a given amp.

If no mask has been created yet, all visits are returned.

Definition at line 265 of file ptc.py.


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