Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-17903

imsim ci_lsst tests fail with bad key ccd

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: obs_lsst
    • Labels:
      None
    • Templates:
    • Story Points:
      1
    • Sprint:
      Arch 2019-02-11
    • Team:
      Architecture

      Description

      When running the ci_lsst imsim tests they fail in the calibration construction phase with a bad key:

      root INFO: Running: .../stack/DarwinX86/pipe_drivers/16.0-10-g0ee56ad/bin/constructBias.py ./tmp/imsim --rerun timj/tmp --id visit=3010000..3010009:3 -j 4
      LsstCamMapper WARN: Unable to find valid calib root directory
      CameraMapper INFO: Loading exposure registry from /Users/timj/work/lsstsw3/build/obs_lsst_new/tmp/imsim/registry.sqlite3
      LsstCamMapper WARN: Unable to find valid calib root directory
      bias FATAL: Failed: 'ccd'
      Traceback (most recent call last):
        File ".../stack/DarwinX86/pipe_drivers/16.0-10-g0ee56ad/python/lsst/pipe/drivers/constructCalibs.py", line 365, in __call__
          result = task.runDataRef(**args)
        File ".../stack/DarwinX86/pipe_drivers/16.0-10-g0ee56ad/python/lsst/pipe/drivers/constructCalibs.py", line 441, in runDataRef
          expRefList, level="sensor", ccdKeys=self.config.ccdKeys)
        File ".../stack/DarwinX86/pipe_drivers/16.0-10-g0ee56ad/python/lsst/pipe/drivers/constructCalibs.py", line 230, in getCcdIdListFromExposures
          name = dictToTuple(ccdId, ccdKeys)
        File ".../stack/DarwinX86/pipe_drivers/16.0-10-g0ee56ad/python/lsst/pipe/drivers/constructCalibs.py", line 196, in dictToTuple
          return tuple(dict_[k] for k in keys)
        File ".../stack/DarwinX86/pipe_drivers/16.0-10-g0ee56ad/python/lsst/pipe/drivers/constructCalibs.py", line 196, in <genexpr>
          return tuple(dict_[k] for k in keys)
        File ".../miniconda/envs/lsst-scipipe/lib/python3.7/collections/__init__.py", line 1025, in __getitem__
          raise KeyError(key)
      KeyError: 'ccd'
      Failed to process imsim 
      

      It is likely a problem with the configurations for imsim in that the default keys are being used rather than the ccdKeys override.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tjenness Tim Jenness
                Reporter:
                tjenness Tim Jenness
                Reviewers:
                Robert Lupton
                Watchers:
                Andrés Alejandro Plazas Malagón, Heather Kelly, John Swinbank, Merlin Fisher-Levine, Robert Lupton, Tim Jenness
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel