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

Image object has no __idiv__ method

    Details

    • Type: Bug
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: afw
    • Labels:
      None
    • Templates:
    • Story Points:
      0.5
    • Epic Link:
    • Team:
      Data Release Production

      Description

      lsst.afw.image.image.image.ImageF has no __idiv__ method defined, so if one tries to do im \= value without having done from __future__ import division (which makes /= point to __itruediv__, then an AttributeError gets raised. Other undesired operators (e.g., __add__, __mul__) raise NotImplementedError, which seems more appropriate. Possible solutions would be to either have __idiv__ raise NotImplementedError (with a helpful message suggesting to please do the __future__ import) or to redirect __idiv__ to __itruediv__.

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  tmorton Tim Morton
                  Watchers:
                  John Swinbank, Paul Price, Pim Schellart [X] (Inactive), Tim Morton
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Summary Panel