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

mergeArms fails to merge spectra from multiple spectrographs

    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

      Description

      rhl and Takuji Yamashita have reported a bug in mergeArms.py when multiple spectrographs are involved:

      After reduceExposure.py /work/drp --calib /work/drp/CALIB --output /work/rhl/rerun/rhl/2022-11 -c doAdjustDetectorMap=True doMeasureLines=True extractSpectra.doCrosstalk=False isr.doFlat=False --id visit=83244 arm=b^r spectrograph=1^3 -j 15 I failed to merge:
      mergeArms.py /work/drp --calib /work/drp/CALIB --output /work/rhl/rerun/rhl/2022-11 --id visit=83244 arm=b^r gave:

      root INFO: Running: /home/rhl/PFS/drp/stella/bin/mergeArms.py /work/drp --calib /work/drp/CALIB --output /work/rhl/rerun/rhl/2022-11 --id visit=83244 arm=b^r --clobber-versions --clobber-config
      mergeArms WARN: Set of fiberIds of LSFs != fiberIds for spectra:  Only in fiberId: {1, 3, 515, 137, 651, 273, 23, 417, 426, 45, 560, 184, 315, 316, 336, 84, 85, 86, 471, 601, 603, 92, 607, 229, 487, 367, 114, 382} (fixing)
      mergeArms WARN: Set of fiberIds of LSFs != fiberIds for spectra:  Only in fiberId: {1, 3, 515, 137, 651, 273, 23, 417, 426, 45, 560, 184, 315, 316, 336, 84, 85, 86, 471, 601, 603, 92, 607, 229, 487, 367, 114, 382} (fixing)
      mergeArms WARN: Set of fiberIds of LSFs != fiberIds for spectra:  Only in fiberId: {1924, 1669, 1684, 1303, 1817, 1945, 1439, 1953, 1575, 1588, 1728, 1347, 1862, 1486, 1618, 1638, 1773, 1394, 1909, 1531} (fixing)
      mergeArms WARN: Set of fiberIds of LSFs != fiberIds for spectra:  Only in fiberId: {1924, 1669, 1684, 1303, 1817, 1945, 1439, 1953, 1575, 1588, 1728, 1347, 1862, 1486, 1618, 1638, 1773, 1394, 1909, 1531} (fixing)
      Traceback (most recent call last):
        File "/work/stack_INFRA-312/stack/miniconda3-py38_4.9.2-3.0.0/Linux64/pipe_base/g590c34a36e+5da9528084/python/lsst/pipe/base/cmdLineTask.py", line 436, in __call__
          result = self.runTask(task, dataRef, kwargs)
        File "/work/stack_INFRA-312/stack/miniconda3-py38_4.9.2-3.0.0/Linux64/pipe_base/g590c34a36e+5da9528084/python/lsst/pipe/base/cmdLineTask.py", line 504, in runTask
          return task.runDataRef(dataRef, **kwargs)
        File "/home/rhl/PFS/drp/stella/python/pfs/drp/stella/mergeArms.py", line 293, in runDataRef
          results = self.run(spectra, pfsConfig, lsfList)
        File "/home/rhl/PFS/drp/stella/python/pfs/drp/stella/mergeArms.py", line 198, in run
          self.normalizeSpectra(allSpectra)
        File "/home/rhl/PFS/drp/stella/python/pfs/drp/stella/mergeArms.py", line 332, in normalizeSpectra
          assert all(np.all(ss.fiberId == fiberId) for ss in spectra)  # Consistent fibers
      AssertionError
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: