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

detectorMap QA failed with keyError

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: drp_qa
    • Labels:

      Description

      got a failure with detectorMapQa :

      detectorMapQa.py /work/drp --calib=/work/drp/CALIB --rerun=drpActor/CALIB --id visit=107867 arm=b
       
      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 "/work/stack_INFRA-312/stack/miniconda3-py38_4.9.2-3.0.0/Linux64/drp_qa/w.2024.10/python/pfs/drp/qa/detectorMapQa.py", line 380, in runDataRef 
       outputs = self.run(detectorMap, arcLines, pfsArm) 
       File "/work/stack_INFRA-312/stack/miniconda3-py38_4.9.2-3.0.0/Linux64/drp_qa/w.2024.10/python/pfs/drp/qa/detectorMapQa.py", line 401, in run 
       return self.plotResidual.run(detectorMap, arcLines, pfsArm) 
       File "/work/stack_INFRA-312/stack/miniconda3-py38_4.9.2-3.0.0/Linux64/drp_qa/w.2024.10/python/pfs/drp/qa/detectorMapQa.py", line 109, in run 
       fig = plotting.plotResidual(arc_data, column=column, vmin=slimit[0], vmax=slimit[1])
       File "/work/stack_INFRA-312/stack/miniconda3-py38_4.9.2-3.0.0/Linux64/drp_qa/w.2024.10/python/pfs/drp/qa/utils/plotting.py", line 228, in plotResidual
       used_stats_str = f'USED\n{stats_df.loc["isUsed"].to_string()}'
       File "/work/stack_INFRA-312/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-3.0.0/lib/python3.8/site-packages/pandas/core/indexing.py", line 967, in __getitem__
       return self._getitem_axis(maybe_callable, axis=axis)
       File "/work/stack_INFRA-312/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-3.0.0/lib/python3.8/site-packages/pandas/core/indexing.py", line 1202, in _getitem_axis
       return self._get_label(key, axis=axis)
       File "/work/stack_INFRA-312/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-3.0.0/lib/python3.8/site-packages/pandas/core/indexing.py", line 1153, in _get_label
       return self.obj.xs(label, axis=axis)
       File "/work/stack_INFRA-312/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-3.0.0/lib/python3.8/site-packages/pandas/core/generic.py", line 3864, in xs
       loc = index.get_loc(key)
       File "/work/stack_INFRA-312/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-3.0.0/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3623, in get_loc
       raise KeyError(key) from err
      KeyError: 'isUsed'

        Attachments

          Activity

            People

            • Assignee:
              wtgee Wilfred Gee
              Reporter:
              arnaud.lefur arnaud.lefur
              Reviewers:
              Kiyoto Yabe
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: