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

Write function to persist pfsArm file

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Won't Fix (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      md = arcExp.getMetadata().toDict()
      key = "PFSCONFIGID"
      if key in md:
      pfsConfigId = md[key]
      else:
      self.log.info('No pfsConfigId is present in postISRCCD file for dataId %s' %
      str(dataId.items()))
      pfsConfigId = 0x0

      pfsConfig = butler.get("pfsConfig", pfsConfigId=pfsConfigId, dateObs=dataId["dateObs"])

      pfsArm = spectrumSetToPfsArm(pfsConfig, spectrumSetFromProfile,
      dataId["visit"], dataId["spectrograph"], dataId["arm"])
      butler.put(PfsArmIO(pfsArm), 'pfsArm', dataId)

      should be encapsulated as a function as it is the standard way to persist a pfsArm file.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                price price
                Reporter:
                aritter aritter
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: