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

Fix ImageDifferenceTask v21 deprecation warnings

    Details

    • Type: Story
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Story Points:
      2
    • Team:
      Alert Production
    • Urgent?:
      No

      Description

      There are further occurrences of getImageF(void) and a getCentroidKey() that was spotted now.

      python/lsst/ip/diffim/diffimTools.py:309
        /ssd/gkovacs/devel/active/DM-21868_ip_diffim_decorr_afterburner/python/lsst/ip/diffim/diffimTools.py:309: FutureWarning: Call to deprecated method __init__. (Overloads that take a ``style`` parameter are deprecated; the style must be passed to `Background.getImageF` instead. To be removed after 20.0.0.)
          bctrl = afwMath.BackgroundControl(algorithm)
       
      python/lsst/ip/diffim/diffimTools.py:317
      python/lsst/ip/diffim/diffimTools.py:317
      python/lsst/ip/diffim/diffimTools.py:317
      python/lsst/ip/diffim/diffimTools.py:317
        /ssd/gkovacs/devel/active/DM-21868_ip_diffim_decorr_afterburner/python/lsst/ip/diffim/diffimTools.py:317: FutureWarning: Call to deprecated method getImageF(). (Zero-argument overload is deprecated; use one that takes an ``interpStyle`` instead. To be removed after 20.0.0.)
          image -= backobj.getImageF()
       
      python/lsst/ip/diffim/diffimTools.py:318
      python/lsst/ip/diffim/diffimTools.py:318
      python/lsst/ip/diffim/diffimTools.py:318
      python/lsst/ip/diffim/diffimTools.py:318
        /ssd/gkovacs/devel/active/DM-21868_ip_diffim_decorr_afterburner/python/lsst/ip/diffim/diffimTools.py:318: FutureWarning: Call to deprecated method getImageF(). (Zero-argument overload is deprecated; use one that takes an ``interpStyle`` instead. To be removed after 20.0.0.)
          backgrounds.append(backobj.getImageF())
       
      tests/test_kernelCandidateAndSolution.py:211
        /ssd/gkovacs/devel/active/DM-21868_ip_diffim_decorr_afterburner/tests/test_kernelCandidateAndSolution.py:211: FutureWarning: Call to deprecated method getCentroidKey. (Use `getCentroidSlot().getMeasKey()` instead. To be removed after 20.0.0.)
          source.set(self.table.getCentroidKey().getX(), 276)
       
      tests/test_kernelCandidateAndSolution.py:212
        /ssd/gkovacs/devel/active/DM-21868_ip_diffim_decorr_afterburner/tests/test_kernelCandidateAndSolution.py:212: FutureWarning: Call to deprecated method getCentroidKey. (Use `getCentroidSlot().getMeasKey()` instead. To be removed after 20.0.0.)
          source.set(self.table.getCentroidKey().getY(), 717)
      
      

        Attachments

          Issue Links

            Activity

            Hide
            swinbank John Swinbank added a comment - - edited

            Note these are to be removed after v20.0.0. Since this isn't an API change we can do it any time before the release of v21.

            Show
            swinbank John Swinbank added a comment - - edited Note these are to be removed after v20.0.0. Since this isn't an API change we can do it any time before the release of v21.

              People

              • Assignee:
                Unassigned
                Reporter:
                gkovacs Gabor Kovacs
                Watchers:
                Gabor Kovacs, John Swinbank
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel