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

ip_diffim breaks with numpy 1.17

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: ip_diffim
    • Labels:
      None
    • Templates:
    • Team:
      External

      Description

      Sogo Mineo reports on installing the LSST stack with numpy 1.17:

      This line needs modifying https://github.com/lsst/ip_diffim/blob/master/python/lsst/ip/diffim/diffimTools.py#L88 as:

      -intNoiseArr = rand.poisson(imArr)
      +intNoiseArr = rand.poisson(np.where(np.isfinite(imArr), imArr, 0.0))
      

      in order for ip_diffim's tests to pass. I think this is because I am using numpy 1.17, in which numpy.random changed largely. rand.poisson() no longer accepts lam >= 9.223372006484772e+18 or lam = nan.

        Attachments

          Activity

            People

            • Assignee:
              price Paul Price
              Reporter:
              price Paul Price
              Reviewers:
              Gabor Kovacs
              Watchers:
              Gabor Kovacs, Paul Price, Sogo Mineo, Tim Jenness
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel