-
Type:
Story
-
Status: Done (View Workflow)
-
Priority:
Normal
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Story Points:3
-
Sprint:2DDRP-2021 A
Using the weekly,
dataId = dict(visit=47, arm="r", spectrograph=1) pfsArm = butler.get("pfsArm", dataId) detMap = butler.get("detectorMap", dataId) detMap.findPoint(pfsArm.fiberId[0], pfsArm.wavelength[0][0]) # succeeds detMap.findPoint(pfsArm.fiberId[0], pfsArm.wavelength[0][0:2]) # fails
generates the error:
TypeError: findPoint(): incompatible function arguments. The following argument types are supported:
1. (self: pfs.drp.stella.DetectorMap.DetectorMap, fiberId: int, wavelength: float) -> lsst.geom.Point2D
2. (self: pfs.drp.stella.DetectorMap.DetectorMap, fiberId: int, wavelength: ndarray::Array<float, 1, 1>) -> ndarray::Array<float, 2, 1>
3. (self: pfs.drp.stella.DetectorMap.DetectorMap, fiberId: ndarray::Array<int, 1, 1>, wavelength: ndarray::Array<float, 1, 1>) -> ndarray::Array<float, 2, 1>
Invoked with: <pfs.drp.stella.SplinedDetectorMap.SplinedDetectorMap object at 0x2b3b8add2928>, 2, array([620.33496, 620.4214 ], dtype=float32)
- relates to
-
DAMD-130 Change wavelength columns from 32-bit to 64-bit floats
-
- Done
-