Skip to content

Commit 8e1ac2d

Browse files
WERKSQUADGabor Kovacs
authored and
Gabor Kovacs
committed
Cherry-picking from branch 15554. All to numpydoc. Conflicts resolved.
1 parent 8ec52ad commit 8e1ac2d

9 files changed

+37
-5
lines changed

python/lsst/pipe/tasks/characterizeImage.py

+2
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ class CharacterizeImageTask(pipeBase.CmdLineTask):
246246
measure:
247247
- `bool`; if True display image and sources after final measurement
248248
249+
Examples
250+
--------
249251
For example, put something like:
250252
251253
.. code-block:: none

python/lsst/pipe/tasks/coaddInputRecorder.py

+12
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,18 @@ class CoaddTempExpInputRecorder:
7979
"""
8080

8181
def __init__(self, task, visitId, num=0):
82+
"""Constructor
83+
84+
Parameters
85+
----------
86+
task :
87+
The CoaddInputRecorderTask that is utilising us
88+
visitId :
89+
Identifier (integer) for the visit
90+
num :
91+
Number of CCDs for this visit that overlap this
92+
patch (for reserving memory)
93+
"""
8294
self.task = task
8395
self.coaddInputs = self.task.makeCoaddInputs()
8496
self.coaddInputs.visits.reserve(1)

python/lsst/pipe/tasks/colorterms.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ class ColortermDict(Config):
109109
ColortermDict(data=dataDict)
110110
where dataDict is a Python dict of filterName: Colorterm
111111
112+
Examples
113+
--------
112114
For example:
113115
114116
.. code-block:: none
@@ -143,6 +145,9 @@ class ColortermLibrary(Config):
143145
ColortermLibrary(data=dataDict)
144146
where dataDict is a Python dict of catalog_name_or_glob: ColortermDict
145147
148+
Examples
149+
--------
150+
146151
.. code-block:: none
147152
148153
For example:
@@ -153,8 +158,8 @@ class ColortermLibrary(Config):
153158
...
154159
}),
155160
"sdss": ColortermDict(data={
156-
'g':Colorterm(primary="g", secondary="r", c0=-0.00816446, c1=-0.08366937, c2=-0.00726883),
157-
'r':Colorterm(primary="r", secondary="i", c0= 0.00231810, c1= 0.01284177, c2=-0.03068248),
161+
'g': Colorterm(primary="g", secondary="r", c0=-0.00816446, c1=-0.08366937, c2=-0.00726883),
162+
'r': Colorterm(primary="r", secondary="i", c0= 0.00231810, c1= 0.01284177, c2=-0.03068248),
158163
...
159164
}),
160165
})

python/lsst/pipe/tasks/dcrAssembleCoadd.py

-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ def run(self, skyInfo, tempExpRefList, imageScalerList, weightList,
337337
The weight to give each input exposure in the coadd
338338
supplementaryData : `lsst.pipe.base.Struct`
339339
Result struct returned by ``makeSupplementaryData`` with components:
340-
341340
- ``templateCoadd``: coadded exposure (`lsst.afw.image.Exposure`)
342341
343342
Returns

python/lsst/pipe/tasks/exampleStatsTasks.py

+6
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ class ExampleSigmaClippedStatsTask(pipeBase.Task):
7070
_DefaultName = "exampleSigmaClippedStats"
7171

7272
def __init__(self, *args, **kwargs):
73+
"""Construct an ExampleSigmaClippedStatsTask
74+
75+
The init method may compute anything that that does not require data.
76+
In this case we create a statistics control object using the config
77+
(which cannot change once the task is created).
78+
"""
7379
pipeBase.Task.__init__(self, *args, **kwargs)
7480

7581
self._badPixelMask = afwImage.Mask.getPlaneBitMask(self.config.badMaskPlanes)

python/lsst/pipe/tasks/imageDifference.py

-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
__all__ = ('ImageDifferenceConfig', 'ImageDifferenceTaskRunner',
5050
'Winter2013ImageDifferenceConfig', 'Winter2013ImageDifferenceTask')
5151

52-
5352
class ImageDifferenceConfig(pexConfig.Config):
5453
"""Config for ImageDifferenceTask
5554
"""
@@ -873,7 +872,6 @@ def setDefaults(self):
873872
ImageDifferenceConfig.setDefaults(self)
874873
self.getTemplate.retarget(GetCalexpAsTemplateTask)
875874

876-
877875
class Winter2013ImageDifferenceTask(ImageDifferenceTask):
878876
"""Image difference Task used in the Winter 2013 data challege.
879877
Enables testing the effects of registration shifts and scatter.

python/lsst/pipe/tasks/makeCoaddTempExp.py

+3
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ class MakeCoaddTempExpTask(CoaddBaseTask):
179179
```config.warpAndPsfMatch.psfMatch.kernel['AL']``` . Each item in the list is formatted as:
180180
Problem: Explanation. Solution
181181
182+
Examples
183+
--------
184+
182185
Troublshooting PSF-Matching Configuration:
183186
184187
- Matched PSFs look boxy: The matching kernel is too small. _Increase the matching kernel size.

python/lsst/pipe/tasks/multiBand.py

+5
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ class DetectCoaddSourcesTask(CmdLineTask):
164164
Notes
165165
-----
166166
167+
Examples
168+
--------
169+
167170
DetectCoaddSourcesTask is meant to be run after assembling a coadded image in a given band. The purpose of
168171
the task is to update the background, detect all sources in a single band and generate a set of parent
169172
footprints. Subsequent tasks in the multi-band processing procedure will merge sources across bands and,
@@ -664,6 +667,8 @@ class MeasureMergedCoaddSourcesTask(CmdLineTask):
664667
MeasureMergedCoaddSourcesTask has no debug variables of its own because it delegates all the work to
665668
the various sub-tasks. See the documetation for individual sub-tasks for more information.
666669
670+
Examples
671+
--------
667672
After MeasureMergedCoaddSourcesTask has been run on multiple coadds, we have a set of per-band catalogs.
668673
The next stage in the multi-band processing procedure will merge these measurements into a suitable
669674
catalog for driving forced photometry.

python/lsst/pipe/tasks/repair.py

+2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ class RepairTask(pipeBase.Task):
8282
displayCR :
8383
If True, display the exposure on ds9's frame 1 and overlay bounding boxes around detects CRs.
8484
85+
Examples
86+
--------
8587
To investigate the pipe_tasks_repair_Debug, put something like
8688
8789
.. code-block :: none

0 commit comments

Comments
 (0)