Tasks should be documented in the .py file, adding an entry to the doxygen group LSST_Task_Documentation group, e.g.

## \addtogroup LSST_task_documentation
## \{
## \page sourceDetectionTask
## \ref SourceDetectionTask_ "SourceDetectionTask"
## \copybrief SourceDetectionTask
## \}

It is acceptable to make documentation only changes on master.  If you feel the need to clean things up you may do it as part of the documentation, but as a short-lived branch.

 There are a couple of tricks:

  • Remember that only """! ... """ comments are fully processed by doxygen
  • I use \copydoc to get the method docs into the "right place".  Russell points out that you have to write \_\_init\_\_

Task documentation will appear at http://lsst-web.ncsa.illinois.edu/~buildbot/doxygen/x_masterDoxyDoc/group___l_s_s_t__task__documentation.html as you check it in (and as soon as buildbot notices). Please check that your documentation appears the way that you expected.

 To remind you we need:

  1. The Task's purpose
  2. How to initialise the Task object
  3. How to invoke a Task
  4. The config parameters
  5. Debugging options enabled with "import debug"
  6. A complete example.

 The input description may not just be something like "sensorRef of the needed inputs".  As most of you know, I am unhappy about using blobs/kwargs/sensorRefs as inputs to Tasks, but this mail is not a request to fix this.  However, if your task *does* use a blob then the documentation must list all of its members, both optional and required (and enough information for the user to decide which is which for their application).  Also, some tasks don't have a run method (e.g. SourceMeasurementTask.measure), but there's no need to fix this now.

 The "complete example" may be difficult.  I'm mostly concerned about constructor arguments and the case that the inputs include a blob, in which case I want the docs to include how that blob should be built in the calling code -- not from the pipe_base argument parser.  If important information is provided by the config, then the user should be told how to build that config in their code;  if the arguments are a blob of some sort the example must tell the user how to build it.  Examples may not assume the use of the cmdLineTask to build sensorRefs as that can't be used by generic user python scripts.

Think about your users, which includes you!  Please try to make these examples as helpful as possible.

There are example docs in python source code in:

 - python/lsst/meas/algorithms/measurement.py (SourceMeasurementTask)

 - python/lsst/meas/algorithms/detection.py (SourceDetectionTask)

if you're looking for inspiration.  I don't claim that these are the best way to achieve the goal, but let's get the docs written and the haggle over how we should have done it -- i.e. please do it this way for now.

The P1 tasks are:

NameIssue

DipoleMeasurementTask(SourceMeasurementTask)

DM-911 - Getting issue details... STATUS

PsfMatch

DM-912 - Getting issue details... STATUS

ImagePsfMatchTask(PsfMatch)

DM-913 - Getting issue details... STATUS

SnapPsfMatchTask(ImagePsfMatchTask)

DM-914 - Getting issue details... STATUS

AssembleCcdTask(pipeBase.Task)

DM-915 - Getting issue details... STATUS

FringeTask(Task)

DM-917 - Getting issue details... STATUS

IsrTask(pipeBase.CmdLineTask)

DM-916 - Getting issue details... STATUS

SourceDetectionTask(pipeBase.Task)

DM-918 - Getting issue details... STATUS

SourceMeasurementTask(pipeBase.Task)

DM-919 - Getting issue details... STATUS

ReplaceWithNoiseTask(pipeBase.Task)

DM-925 - Getting issue details... STATUS

PhotoCalTask(pipeBase.Task)

DM-920 - Getting issue details... STATUS

SourceDeblendTask(pipeBase.Task)

DM-926 - Getting issue details... STATUS

CmdLineTask(Task)

DM-927 - Getting issue details... STATUS

AstrometryTask(pipeBase.Task)

DM-921 - Getting issue details... STATUS

CalibrateTask(pipeBase.Task)

DM-922 - Getting issue details... STATUS

InterpImageTask(pipeBase.Task)

DM-923 - Getting issue details... STATUS

MeasurePsfTask(pipeBase.Task)

DM-924 - Getting issue details... STATUS

RepairTask(pipeBase.Task)

DM-928 - Getting issue details... STATUS

How to write your own command line task, including how-to-retarget sub-tasks

DM-929 - Getting issue details... STATUS

And example source code is at

  • python/lsst/pipe/tasks/astrometry.py
  • python/lsst/meas/photocal/PhotoCal.py ([still] in meas_astrom)
  •  python/lsst/meas/algorithms/measurement.py 
  •  python/lsst/meas/algorithms/detection.py

if you're looking for inspiration.