Uploaded image for project: 'DRP 2-D Pipeline'
  1. DRP 2-D Pipeline
  2. PIPE2D-689

Vector version of DetectorMap.findPoint fails

    XMLWordPrintable

    Details

    • 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

      Description

      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)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                price price
                Reporter:
                rhl rhl
                Reviewers:
                hassan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: