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

          rhl Robert Lupton created issue -
          swinbank John Swinbank made changes -
          Field Original Value New Value
          Epic Link DM-10383 [ 32102 ]
          swinbank John Swinbank made changes -
          Team Data Release Production [ 10301 ]
          yusra Yusra AlSayyad made changes -
          Epic Link DM-10383 [ 32102 ] DM-12729 [ 36328 ]
          yusra Yusra AlSayyad made changes -
          Epic Link DM-12729 [ 36328 ] DM-14405 [ 79812 ]
          yusra Yusra AlSayyad made changes -
          Labels PairCoding
          yusra Yusra AlSayyad made changes -
          Risk Score 0
          nlust Nate Lust made changes -
          Assignee Nate Lust [ nlust ]
          nlust Nate Lust made changes -
          Status To Do [ 10001 ] In Progress [ 3 ]
          nlust Nate Lust made changes -
          Reviewers Fred Moolekamp [ fred3m ]
          Status In Progress [ 3 ] In Review [ 10004 ]
          fred3m Fred Moolekamp made changes -
          Status In Review [ 10004 ] Reviewed [ 10101 ]
          nlust Nate Lust made changes -
          Resolution Done [ 10000 ]
          Status Reviewed [ 10101 ] Done [ 10002 ]
          swinbank John Swinbank made changes -
          Story Points 2

            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:

                Jenkins

                No builds found.