391 def plotResiduals(exposure, cellSet, showBadCandidates=False, normalizeResiduals=True, frame=2):
392 psf = exposure.getPsf()
393 disp = afwDisplay.Display(frame=frame)
396 maUtils.showPsfCandidates(exposure, cellSet, psf=psf, display=disp,
397 normalize=normalizeResiduals,
398 showBadCandidates=showBadCandidates)
400 maUtils.showPsfCandidates(exposure, cellSet, psf=psf, display=disp,
401 normalize=normalizeResiduals,
402 showBadCandidates=showBadCandidates,
406 if not showBadCandidates:
407 showBadCandidates =
True