Project: datamanagement
Issue DM-5586: Fix obs_decam butler level
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.)
Story points: 3