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

addFiberTraceSetToMask missing

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Won't Fix (View Workflow)
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      2DDRP-2021 A

      Description

      It is possible that the original method stella.utils.addFiberTraceSetToMask has been lost with the introduction of FiberTrace.getTrace(). Please confirm. If it is, an example implementation is provided below that can be used.

      from pfs.drp.stella import fiberMaskPlane
      def addFiberTraceSetToMask(mask, fiberTraceSet, display=None):
          mask.addMaskPlane(fiberMaskPlane)
          
          for ft in fiberTraceSet:
              ftMask = ft.trace.mask
              calexp.mask[ftMask.getBBox()] |= ftMask
              
          if display:
              display.setMaskPlaneColor(fiberMaskPlane, "GREEN")
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hassan hassan
                Reporter:
                hassan hassan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: