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

afwImage doesn't roundtrip through numpy

    XMLWordPrintable

    Details

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

      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

          Hide
          nlust Nate Lust added a comment -

          Pair coding

          Show
          nlust Nate Lust added a comment - Pair coding
          Hide
          fred3m Fred Moolekamp added a comment -

          Pair coding project with Nate Lust. Jenkins build passed.

          Show
          fred3m Fred Moolekamp added a comment - Pair coding project with Nate Lust . Jenkins build passed.

            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: