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

Improve "unsupported operand types" error for afwImage arithmetic

    Details

    • Type: Improvement
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: afw
    • Templates:
    • Story Points:
      1
    • Team:
      External

      Description

      If a user tries to add two images, or multiply an image by a constant, or do any kind of not-in-place image arithmetic, they get an unfriendly TypeError: unspotted operand type(s).

      This ticket is to clarify the error message and suggest an alternative, for example, "afwImages must be modified in place, e.g., if you want image1 + image2, try image1 += image2."

        Attachments

          Activity

            People

            • Assignee:
              price Paul Price
              Reporter:
              mrawls Meredith Rawls
              Reviewers:
              Meredith Rawls
              Watchers:
              Meredith Rawls, Paul Price
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel