LSSTApplications  21.0.0+1b62c9342b,21.0.0+45a059f35e,21.0.0-1-ga51b5d4+ceb9cf20a3,21.0.0-10-g68cce58c5+c7d3cce47e,21.0.0-2-g103fe59+c1ca725317,21.0.0-2-g1367e85+a1c2f7fe71,21.0.0-2-g2909d54+45a059f35e,21.0.0-2-g45278ab+1b62c9342b,21.0.0-2-g4bc9b9f+b2e40a4e47,21.0.0-2-g5242d73+a1c2f7fe71,21.0.0-2-g54e2caa+c00cf99ed0,21.0.0-2-g66bcc37+27b9d7859a,21.0.0-2-g7f82c8f+203cf74700,21.0.0-2-g8dde007+b0df52bfdd,21.0.0-2-g8f08a60+73884b2cf5,21.0.0-2-ga326454+203cf74700,21.0.0-2-ga63a54e+eec04437aa,21.0.0-2-gc738bc1+59028256f4,21.0.0-2-gde069b7+5a8f2956b8,21.0.0-2-ge17e5af+a1c2f7fe71,21.0.0-2-ge712728+9ad031c87e,21.0.0-2-gecfae73+d3766aec80,21.0.0-2-gfc62afb+a1c2f7fe71,21.0.0-20-g4449a12+38dfb87bce,21.0.0-22-gf0532904+afb8e7912b,21.0.0-3-g4c5b185+a403cb96fd,21.0.0-3-g6d51c4a+27b9d7859a,21.0.0-3-g8076721+e873df194c,21.0.0-3-gaa929c8+df5d87f43a,21.0.0-3-gd222c45+afc8332dbe,21.0.0-4-g1383c07+27b9d7859a,21.0.0-4-g3300ddd+1b62c9342b,21.0.0-4-g5873dc9+9a92674037,21.0.0-4-g8a80011+f67daf2f53,21.0.0-5-gcff38f6+bce43c5818,21.0.0-6-g463d161+44134145d4,21.0.0-6-gd3283ba+df5d87f43a,21.0.0-8-g19111d86+d6551531e4,w.2021.04
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.fgcmcal.fgcmFitCycle.FgcmFitCycleTask Class Reference
Inheritance diagram for lsst.fgcmcal.fgcmFitCycle.FgcmFitCycleTask:

Public Member Functions

def __init__ (self, butler=None, **kwargs)
 
def runDataRef (self, butler)
 
def writeConfig (self, butler, clobber=False, doBackup=True)
 

Public Attributes

 maxIter
 
 outputStandards
 
 outputZeropoints
 
 resetFitParameters
 

Static Public Attributes

 ConfigClass = FgcmFitCycleConfig
 
 RunnerClass = FgcmFitCycleRunner
 

Detailed Description

Run Single fit cycle for FGCM global calibration

Definition at line 755 of file fgcmFitCycle.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.fgcmcal.fgcmFitCycle.FgcmFitCycleTask.__init__ (   self,
  butler = None,
**  kwargs 
)
Instantiate an fgcmFitCycle.

Parameters
----------
butler : `lsst.daf.persistence.Butler`

Definition at line 764 of file fgcmFitCycle.py.

764  def __init__(self, butler=None, **kwargs):
765  """
766  Instantiate an fgcmFitCycle.
767 
768  Parameters
769  ----------
770  butler : `lsst.daf.persistence.Butler`
771  """
772 
773  pipeBase.CmdLineTask.__init__(self, **kwargs)
774 

Member Function Documentation

◆ runDataRef()

def lsst.fgcmcal.fgcmFitCycle.FgcmFitCycleTask.runDataRef (   self,
  butler 
)
Run a single fit cycle for FGCM

Parameters
----------
butler:  `lsst.daf.persistence.Butler`

Definition at line 780 of file fgcmFitCycle.py.

780  def runDataRef(self, butler):
781  """
782  Run a single fit cycle for FGCM
783 
784  Parameters
785  ----------
786  butler: `lsst.daf.persistence.Butler`
787  """
788 
789  self._fgcmFitCycle(butler)
790 

◆ writeConfig()

def lsst.fgcmcal.fgcmFitCycle.FgcmFitCycleTask.writeConfig (   self,
  butler,
  clobber = False,
  doBackup = True 
)
Write the configuration used for processing the data, or check that an existing
one is equal to the new one if present.  This is an override of the regular
version from pipe_base that knows about fgcmcycle.

Parameters
----------
butler : `lsst.daf.persistence.Butler`
    Data butler used to write the config. The config is written to dataset type
    `CmdLineTask._getConfigName`.
clobber : `bool`, optional
    A boolean flag that controls what happens if a config already has been saved:
    - `True`: overwrite or rename the existing config, depending on ``doBackup``.
    - `False`: raise `TaskError` if this config does not match the existing config.
doBackup : `bool`, optional
    Set to `True` to backup the config files if clobbering.

Definition at line 791 of file fgcmFitCycle.py.

791  def writeConfig(self, butler, clobber=False, doBackup=True):
792  """Write the configuration used for processing the data, or check that an existing
793  one is equal to the new one if present. This is an override of the regular
794  version from pipe_base that knows about fgcmcycle.
795 
796  Parameters
797  ----------
798  butler : `lsst.daf.persistence.Butler`
799  Data butler used to write the config. The config is written to dataset type
800  `CmdLineTask._getConfigName`.
801  clobber : `bool`, optional
802  A boolean flag that controls what happens if a config already has been saved:
803  - `True`: overwrite or rename the existing config, depending on ``doBackup``.
804  - `False`: raise `TaskError` if this config does not match the existing config.
805  doBackup : `bool`, optional
806  Set to `True` to backup the config files if clobbering.
807  """
808  configName = self._getConfigName()
809  if configName is None:
810  return
811  if clobber:
812  butler.put(self.config, configName, doBackup=doBackup, fgcmcycle=self.config.cycleNumber)
813  elif butler.datasetExists(configName, write=True, fgcmcycle=self.config.cycleNumber):
814  # this may be subject to a race condition; see #2789
815  try:
816  oldConfig = butler.get(configName, immediate=True, fgcmcycle=self.config.cycleNumber)
817  except Exception as exc:
818  raise type(exc)("Unable to read stored config file %s (%s); consider using --clobber-config" %
819  (configName, exc))
820 
821  def logConfigMismatch(msg):
822  self.log.fatal("Comparing configuration: %s", msg)
823 
824  if not self.config.compare(oldConfig, shortcut=False, output=logConfigMismatch):
825  raise pipeBase.TaskError(
826  ("Config does not match existing task config %r on disk; tasks configurations " +
827  "must be consistent within the same output repo (override with --clobber-config)") %
828  (configName,))
829  else:
830  butler.put(self.config, configName, fgcmcycle=self.config.cycleNumber)
831 

Member Data Documentation

◆ ConfigClass

lsst.fgcmcal.fgcmFitCycle.FgcmFitCycleTask.ConfigClass = FgcmFitCycleConfig
static

Definition at line 760 of file fgcmFitCycle.py.

◆ maxIter

lsst.fgcmcal.fgcmFitCycle.FgcmFitCycleTask.maxIter

Definition at line 844 of file fgcmFitCycle.py.

◆ outputStandards

lsst.fgcmcal.fgcmFitCycle.FgcmFitCycleTask.outputStandards

Definition at line 845 of file fgcmFitCycle.py.

◆ outputZeropoints

lsst.fgcmcal.fgcmFitCycle.FgcmFitCycleTask.outputZeropoints

Definition at line 846 of file fgcmFitCycle.py.

◆ resetFitParameters

lsst.fgcmcal.fgcmFitCycle.FgcmFitCycleTask.resetFitParameters

Definition at line 847 of file fgcmFitCycle.py.

◆ RunnerClass

lsst.fgcmcal.fgcmFitCycle.FgcmFitCycleTask.RunnerClass = FgcmFitCycleRunner
static

Definition at line 761 of file fgcmFitCycle.py.


The documentation for this class was generated from the following file:
lsst::log.log.logContinued.fatal
def fatal(fmt, *args)
Definition: logContinued.py:217
type
table::Key< int > type
Definition: Detector.cc:163