From 8fc62288922bb9ae5455e4923ec83b4ab2a57c6d Mon Sep 17 00:00:00 2001 From: Robert Lupton the Good Date: Tue, 8 Dec 2020 17:00:18 -0500 Subject: [PATCH] Fix trivial-but-fatal errors in makeFiberTraceFromDetectorMap --- python/pfs/drp/stella/fiberProfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/pfs/drp/stella/fiberProfile.py b/python/pfs/drp/stella/fiberProfile.py index 3d153108f..9c47bf348 100644 --- a/python/pfs/drp/stella/fiberProfile.py +++ b/python/pfs/drp/stella/fiberProfile.py @@ -217,10 +217,10 @@ def makeFiberTraceFromDetectorMap(self, detectorMap, fiberId): A pixellated version of the profile, at a fixed trace position. """ dimensions = detectorMap.bbox.getDimensions() - rows = np.arange(dimensions.getHeight(), dtype=np.float32) + rows = np.arange(dimensions.getY(), dtype=np.float32) xCenter = detectorMap.getXCenter(fiberId) centerFunc = SplineF(rows, xCenter) - return self.makeFiberTrace(dimensions, centerFunc) + return self.makeFiberTrace(dimensions, centerFunc, fiberId) def makeFiberTrace(self, dimensions, centerFunc, fiberId): """Make a FiberTrace object