Skip to content

Commit

Permalink
adjustDetectorMap: fix deprecation warning
Browse files Browse the repository at this point in the history
py.warnings WARNING: /home/pfs/pfs/drp_stella/python/pfs/drp/stella/adjustDetectorMap.py:71: FutureWarning: Call to deprecated method getExposureId. (Replaced by VisitInfo.id for full focal plane identifiers and by ExposureInfo.id for detector-level identifiers. Will be removed after v25.) -- Deprecated since version v24.0.
  • Loading branch information
PaulPrice committed May 25, 2022
1 parent 8e60e82 commit e48f0b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pfs/drp/stella/adjustDetectorMap.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def run(self, detectorMap, lines):
dispersion = base.getDispersionAtCenter(base.fiberId[len(base)//2])
weights = self.calculateWeights(lines)
fit = self.fitDistortion(detectorMap.bbox, residuals, weights, dispersion,
seed=detectorMap.visitInfo.getExposureId(), fitStatic=False,
seed=detectorMap.visitInfo.id, fitStatic=False,
Distortion=type(base.getDistortion()))
detectorMap = self.constructAdjustedDetectorMap(base, fit.distortion)
if not self.updateTraceWavelengths(lines, detectorMap):
Expand Down

0 comments on commit e48f0b0

Please sign in to comment.