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

CpFlatNormalizationTask improperly indexes detectors

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: cp_pipe
    • Labels:
      None
    • Story Points:
      1
    • Epic Link:
    • Team:
      Data Release Production
    • Urgent?:
      No

      Description

      CpFlatNormalizationTask iterates through the detectors at line 297 with:

      if self.config.level == 'DETECTOR':
          for detId, det in enumerate(detSet): 
                for amp in camera[detId]:
      

      This fails for decam with *** KeyError: 'Detector for key 0 not found.', because the detectors start at 1. This should probably refer to camera[det].

        Attachments

          Activity

            People

            Assignee:
            czw Christopher Waters
            Reporter:
            ctslater Colin Slater
            Reviewers:
            Meredith Rawls
            Watchers:
            Christopher Waters, Colin Slater, John Parejko, Meredith Rawls
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                CI Builds

                No builds found.