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

ip_diffim tests produce many warnings

    XMLWordPrintable

    Details

      Description

      Running the diffim tests produces a variety of FutureWarnings. I've pasted a sample below, but we should try to clean all of them up.

        /home/parejkoj/lsst/repos/ip_diffim/python/lsst/ip/diffim/dcrModel.py:662: DeprecationWarning: Please use `binary_opening` from the `scipy.ndimage` namespace, the `scipy.ndimage.morphology` namespace is deprecated.
          lowPixels = ndimage.morphology.binary_opening(lowPixels, structure=filterStructure)
       
       
        /home/parejkoj/lsst/repos/ip_diffim/python/lsst/ip/diffim/dcrModel.py:577: DeprecationWarning: Please use `gaussian_filter` from the `scipy.ndimage` namespace, the `scipy.ndimage.filters` namespace is deprecated.
          smoothModel = ndimage.filters.gaussian_filter(model.array, filterWidth, mode='constant')
       
      tests/test_dipole.py: 11 warnings
        /home/parejkoj/lsst/repos/ip_diffim/tests/test_dipole.py:80: FutureWarning: Default position argument overload is deprecated and will be removed in version 24.0.  Please explicitly specify a position.
          psfim = psf.computeImage().convertF()
       
        /home/parejkoj/lsst/repos/ip_diffim/python/lsst/ip/diffim/imageMapReduce.py:297: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
        Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
          wts = weights.getArray().astype(np.float)
       
        /home/parejkoj/lsst/repos/ip_diffim/python/lsst/ip/diffim/imageDecorrelation.py:741: FutureWarning: Call to deprecated method getLevel. (Use Python Logger compatible .level property. Will be removed after v23.) -- Deprecated since version v23.
          logLevel = self.log.getLevel()
       
        /home/parejkoj/lsst/repos/ip_diffim/python/lsst/ip/diffim/zogy.py:292: FutureWarning: Default position argument overload is deprecated and will be removed in version 24.0.  Please explicitly specify a position.
          psfBBox1 = psf1.computeBBox()
       
        /home/parejkoj/lsst/repos/ip_diffim/python/lsst/ip/diffim/modelPsfMatch.py:419: FutureWarning: Default position argument overload is deprecated and will be removed in version 24.0.  Please explicitly specify a position.
          dimenR = referencePsfModel.getLocalKernel().getDimensions()
      

        Attachments

          Issue Links

            Activity

            Parejkoj John Parejko created issue -
            Parejkoj John Parejko made changes -
            Field Original Value New Value
            Link This issue relates to DM-22960 [ DM-22960 ]
            Parejkoj John Parejko made changes -
            Link This issue relates to DM-33001 [ DM-33001 ]
            Parejkoj John Parejko made changes -
            Link This issue relates to DM-34266 [ DM-34266 ]
            sullivan Ian Sullivan made changes -
            Link This issue relates to DM-33001 [ DM-33001 ]
            sullivan Ian Sullivan made changes -
            Epic Link DM-30505 [ 510171 ]
            Labels ap-analysis
            sullivan Ian Sullivan made changes -
            Link This issue relates to DM-33001 [ DM-33001 ]
            sullivan Ian Sullivan made changes -
            Labels ap-analysis ap-analysis ap-training
            Parejkoj John Parejko made changes -
            Status To Do [ 10001 ] In Progress [ 3 ]
            Parejkoj John Parejko made changes -
            Assignee John Parejko [ parejkoj ]
            Parejkoj John Parejko made changes -
            Reviewers Ian Sullivan [ sullivan ]
            Status In Progress [ 3 ] In Review [ 10004 ]
            sullivan Ian Sullivan made changes -
            Status In Review [ 10004 ] Reviewed [ 10101 ]
            Parejkoj John Parejko made changes -
            Resolution Done [ 10000 ]
            Status Reviewed [ 10101 ] Done [ 10002 ]
            sullivan Ian Sullivan made changes -
            Epic Link DM-30505 [ 510171 ] DM-34931 [ 1598492 ]
            Story Points 1

              People

              Assignee:
              Parejkoj John Parejko
              Reporter:
              Parejkoj John Parejko
              Reviewers:
              Ian Sullivan
              Watchers:
              Eric Bellm, Ian Sullivan, John Parejko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.