Skip to content

Commit

Permalink
Rename the task and package
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisherlevine committed Nov 22, 2017
1 parent e762df4 commit 2646853
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
Empty file added doc/doxygen.conf.in
Empty file.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
#

from .version import * # generated by sconsUtils unless you tell it not to
from .cppTask import *
from .cpTask import *

22 changes: 11 additions & 11 deletions python/lsst/ip/cpp/cppTask.py → python/lsst/cp/pipe/cpTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
import glob


class CppTaskConfig(pexConfig.Config):
"""Config class for the calibration products production (CPP) task."""
class CpTaskConfig(pexConfig.Config):
"""Config class for the calibration products production (CP) task."""

fe55 = pexConfig.ConfigurableField(
target=sensorTest.Fe55Task,
Expand Down Expand Up @@ -162,9 +162,9 @@ def validate(self):
override the validate() method here, and use it to set the output directory for each of the tasks
based on the legal pexConfig parameter for the main task.
"""
log = lsstLog.Log.getLogger("ip.cpp.cppTaskConfig")
log = lsstLog.Log.getLogger("cp.pipe.cpTaskConfig")
if not self.eotestOutputPath:
raise RuntimeError("Must supply an output path for eotest data."
raise RuntimeError("Must supply an output path for eotest data. "
"Please set config.eotestOutputPath.")

taskList = ['fe55', 'brightPixels', 'darkPixels', 'readNoise', 'traps', 'cte', 'flatPair', 'ptc']
Expand All @@ -179,9 +179,9 @@ def validate(self):
getattr(self, task).output_dir = self.eotestOutputPath


class CppTask(pipeBase.CmdLineTask):
class CpTask(pipeBase.CmdLineTask):
"""
Calibration Products Production (CPP) task.
Calibration Products Production (CP) task.
This task is used to produce the calibration products required to calibrate cameras.
Examples of such operations are as follows:
Expand All @@ -194,7 +194,7 @@ class CppTask(pipeBase.CmdLineTask):
Given a set of bias frames, calculate the read noise of the system in e-.
Given a set of pocket-pumping exposures, find charge-traps in the silicon.
The CppTask.runEotestDirect() is only applicable to LSST sensors, and only for a specific type of dataset
The CpTask.runEotestDirect() is only applicable to LSST sensors, and only for a specific type of dataset
This method takes a dafPersistance.Butler corresponding to a repository in which a full eotest run has
been taken and ingested, and runs each of the tasks in eotest directly, allowing for bitwise comparison
with results given by the camera team.
Expand All @@ -203,12 +203,12 @@ class CppTask(pipeBase.CmdLineTask):
regarding the inputs and outputs.
"""

ConfigClass = CppTaskConfig
_DefaultName = "cpp"
ConfigClass = CpTaskConfig
_DefaultName = "cp"

def __init__(self, *args, **kwargs):
"""
Constructor for CppTask.
Constructor for CpTask.
Calls the lsst.pipe.base.task.Task.__init__() method, then sets up the
various subTasks for calibration products production task.
Expand Down Expand Up @@ -239,7 +239,7 @@ def __init__(self, *args, **kwargs):
self.makeSubtask("ptc")

# Do we want to switch to the better-named logger below or use the one we get from cmdLineTask?
# e.g. using self.log = lsstLog.Log.getLogger("ip.cpp.cppTask")?
# e.g. using self.log = lsstLog.Log.getLogger("cp.pipe.cpTask")?

def _getMaskFiles(self, path, ccd):
"""Get all available eotest mask files for a given ccd.
Expand Down
3 changes: 2 additions & 1 deletion tests/test_cp_pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ def testImport(self):

@unittest.skipIf(noEotest, noEotestMsg)
def testClassInstantiation(self):
from lsst.cp.pipe import CppTask
from lsst.cp.pipe import CpTask
cpConfig = CpTask.ConfigClass()
cpConfig.eotestOutputPath='/some/test/path' # must not be empty for validate() to pass
cpTask = CpTask(config=cpConfig)


Expand Down

0 comments on commit 2646853

Please sign in to comment.