FamDetectorResult#
- class lsst.ts.wep.blitz.FamDetectorResult(det_id, det_name, results, wf_results, donuts, unmatched_donuts, error, skipped, pid, dispatch_to_arrival, io_run, refcat_run, cutout_run, fit_run, worker_wall, pair_path='n/a')#
Bases:
objectOne full-array detector, as
_fam_detector_workerreturns it.The envelope around the pair of
CutoutResult`s in ``results`: a full-array worker fuses cutting, pairing and fitting into one work unit, so everything the parent needs about that detector has to come back through here. Corner mode has no counterpart – its work unit ends at theCutoutResult, and the fields below it would carry are parent-side locals inDonutBlitzCornerTask.runinstead.Every
*_runfield is seconds and per detector, and NaN means the worker never reached that phase.refcat_runin particular is not per exposure: one refcat load covers both sides of focus, so it belongs here and not on the tworesults, where summing it across the quantum would double-count every detector.A worker that failed reports it in
errorrather than raising, so that one bad detector out of 189 cannot take down the pool.skippedseparates the expected no-work outcome – a dead CCD, which ip_isr raisesNoWorkFoundfor – from a genuine fault; both leaveerrorset, so testskippedfirst.- results#
The pair of cutout results, intra-focal first.
- Type:
list of CutoutResult
- wf_results#
One per fit group.
- Type:
- io_run, refcat_run, cutout_run, fit_run, worker_wall
Per-detector phase wall-clock in seconds; NaN for a phase the worker never reached.
refcat_runcovers both sides of focus.- Type:
- pair_path#
Which pairing algorithm ran;
"n/a"for a detector that failed or was skipped before grouping.- Type:
str, optional
- Parameters:
Attributes Summary
Methods Summary
dead(det_id, reason)Stand-in for a detector whose worker was killed outright.
started(det_id, dispatch_to_arrival)The result a worker starts from and fills in as it goes.
Attributes Documentation
-
results:
list[CutoutResult] = <dataclasses._MISSING_TYPE object>#
-
wf_results:
list[WfGroupResult] = <dataclasses._MISSING_TYPE object>#
Methods Documentation
- classmethod dead(det_id, reason)#
Stand-in for a detector whose worker was killed outright.
_fam_detector_workercatchesBaseExceptionso that it always returns one of these, but that cannot cover a SIGKILL: no Python runs in a process the kernel has already destroyed. The parent fills in the same shape so one dead detector costs one detector, not the other 188 and the hours already spent on them.Recorded as an error rather than a skip:
skippedmeans an expected no-work outcome such as a dead CCD, whereas a killed worker is a fault.- Parameters:
- Returns:
A result with
errorset andpid-1, marking it as a fault the parent synthesized on the worker’s behalf.- Return type:
- classmethod started(det_id, dispatch_to_arrival)#
The result a worker starts from and fills in as it goes.
Every phase timing is NaN and every list empty, so a worker that dies part way through reports exactly the phases it reached.
pidis the worker’s own, which is what ties a log line to a process.- Parameters:
- Returns:
A fresh result with empty lists, NaN timings and the worker’s own pid, ready to be filled in as the worker progresses.
- Return type: