Skip to content

Commit 80a9a94

Browse files
committed
Adding logging to generateDonutDirectTask.
1 parent 64486eb commit 80a9a94

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/lsst/ts/wep/task/generateDonutDirectDetectTask.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,14 @@ def run(self, exposure: Exposure, camera: Camera) -> pipeBase.Struct:
273273
if detectorName in self.intraFocalNames:
274274
defocalType = DefocalType.Intra
275275

276+
self.log.info(f"Loading instrument {camName} for detector {detectorName}")
276277
# Load the instrument
277278
instrument = getTaskInstrument(
278279
camName,
279280
detectorName,
280281
self.config.instConfigFile,
281282
)
283+
self.log.info("Creating donut template")
282284
try:
283285
# Create the image template for the detector
284286
template = createTemplateForDetector(
@@ -305,15 +307,18 @@ def run(self, exposure: Exposure, camera: Camera) -> pipeBase.Struct:
305307
return pipeBase.Struct(donutCatalog=donutCatUpd)
306308

307309
# Run background subtraction
310+
self.log.info("Running background subtraction")
308311
self.subtractBackground.run(exposure=exposure)
309312

310313
# Trim the exposure by the margin
314+
self.log.info("Trimming exposure edges")
311315
edgeMargin = self.config.edgeMargin
312316
bbox = exposure.getBBox()
313317
trimmedBBox = bbox.erodedBy(edgeMargin)
314318
exposureTrim = exposure[trimmedBBox].clone()
315319

316320
# Run the measurement task
321+
self.log.info("Running donut detection and measurement")
317322
objData = self.measurementTask.run(
318323
exposureTrim,
319324
template,

0 commit comments

Comments
 (0)