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

Fix obs_decam butler level

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: obs_decam
    • Labels:
      None

      Description

      There is a bug in obs_decam/policy/DecamMapper.paf, causing some butler features for the "visit" level or above working incorrectly. The hdu key is irrelevant for the visit level or above, but wasn't included in the policy file.

      Because of this bug, the DemoTask in ctrl_pool (ctrlPoolDemo.py) runs incorrectly with DECam data. It incorrectly treats dataRef with different {{hdu}}s as they are from different visits, hence reads each ccd image multiple times (61 times for one visit with 61 hdu). Instead, each ccd image should be read once.

      Besides fixing the policy file, I also added an optional test that only runs if testdata_decam is set up. The part with level="visit" in the test fails without the ticket changes in the policy.
      (p.s. The raw data file in testdata_decam is modified and has only 2 hdus.)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hchiang2 Hsin-Fang Chiang
                Reporter:
                hchiang2 Hsin-Fang Chiang
                Reviewers:
                Nate Pease
                Watchers:
                Hsin-Fang Chiang, Nate Pease
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel