Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions python/lsst/summit/utils/guiders/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,13 @@ def measureStarOnStamp(
star.runAperturePhotometry(dataBkgSub, apertureRadius, gain=gain, bkgStd=bkgStd)

# 4) Add centroid and shape in amplifier roi coordinates
star.xroi += cutout.xmin_original
star.yroi += cutout.ymin_original
# GalSim uses 1-based indexing where (1,1) is the
# center of pixel [0,0].Matplotlib's imshow with
# extent=(0,w,0,h) places pixel centers at half-integers.
# To align: subtract 0.5 to convert GalSim coords to
# matplotlib pixel-center coords.
star.xroi += cutout.xmin_original - 0.5
star.yroi += cutout.ymin_original - 0.5
return star


Expand Down
2 changes: 1 addition & 1 deletion python/lsst/summit/utils/guiders/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def computeTrendMetrics(
global_std = float(mad_std(y))

fitter = RobustFitter()
fit_res = fitter.fit(x, y)
fit_res = fitter.fit(x, y, residualThreshold=3.0)

return GuiderDriftResult(
fit=fit_res,
Expand Down
Loading