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

afwImage doesn't roundtrip through numpy

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: afw
    • Labels:
    • Templates:
    • Story Points:
      2
    • Team:
      Data Release Production

      Description

      im = afwImage.ImageF(10, 20)
      ima = im.array
       
      afwImage.ImageF(ima)
      afwImage.Image(ima, dtype=ima.dtype)
      

      fails with

      ----> 5 afwImage.Image(ima, dtype=ima.dtype)
       
      /Users/lsst/products/DarwinX86/miniconda/latest/envs/lsst-13_0/var/opt/eups/DarwinX86/utils/13.0-7-gd7d2357/python/lsst/utils/wrappers.pyc in __call__(self, *args, **kwds)
          272         if cls is None:
          273             d = {k: v for k, v in zip(self.TEMPLATE_PARAMS, key)}
      --> 274             raise TypeError("No registered subclass for {}.".format(d))
          275         return cls(*args, **kwds)
          276 
       
      TypeError: No registered subclass for {'dtype': dtype('float32')}.
      

        Attachments

          Activity

            People

            • Assignee:
              nlust Nate Lust
              Reporter:
              rhl Robert Lupton
              Reviewers:
              Fred Moolekamp
              Watchers:
              Fred Moolekamp, Nate Lust, Robert Lupton
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel