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

Mask operations don't work with bit masks returned by Mask's methods

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Won't Fix
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: afw
    • Labels:
      None

      Description

      mask = exposure.mask
      mask & mask.getPlaneBitMask("CROSSTALK")
      

      returns:

      TypeError: unsupported operand type(s) for &: 'lsst.afw.image.image.image.MaskX' and 'int'
      

       
       This should work; almost by definition the two types are consistent! The problem is presumably in the translation to python, but that means that we need to provide a translation back.

        Attachments

          Activity

          rhl Robert Lupton created issue -
          rhl Robert Lupton made changes -
          Field Original Value New Value
          Risk Score 0
          swinbank John Swinbank made changes -
          Epic Link DM-14405 [ 79812 ]
          swinbank John Swinbank made changes -
          Team Data Release Production [ 10301 ]
          yusra Yusra AlSayyad made changes -
          Epic Link DM-14405 [ 79812 ] DM-16678 [ 235238 ]
          swinbank John Swinbank made changes -
          Epic Link DM-16678 [ 235238 ] DM-20164 [ 323028 ]
          yusra Yusra AlSayyad made changes -
          Epic Link DM-20164 [ 323028 ] DM-21252 [ 414682 ]
          yusra Yusra AlSayyad made changes -
          Epic Link DM-21252 [ 414682 ] DM-22588 [ 427655 ]
          yusra Yusra AlSayyad made changes -
          Epic Link DM-22588 [ 427655 ] DM-23740 [ 431397 ]
          yusra Yusra AlSayyad made changes -
          Epic Link DM-23740 [ 431397 ] DM-25271 [ 435631 ]
          yusra Yusra AlSayyad made changes -
          Epic Link DM-25271 [ 435631 ] DM-26789 [ 439739 ]
          yusra Yusra AlSayyad made changes -
          Epic Link DM-26789 [ 439739 ] DM-27974 [ 442759 ]
          czw Christopher Waters made changes -
          Resolution Done [ 10000 ]
          Status To Do [ 10001 ] Won't Fix [ 10405 ]

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rhl Robert Lupton
            Watchers:
            Christopher Waters, Robert Lupton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins Builds

                No builds found.