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

Incompatibility with NumPy 1.13

    Details

    • Type: Story
    • Status: Done
    • Priority: Critical
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: afw
    • Templates:
    • Story Points:
      1
    • Sprint:
      DRP F17-1
    • Team:
      Data Release Production

      Description

      Per this report on CLO, our test suite fails when run against NumPy 1.13.0:

      File "tests/testSimpleTable.py", line 346, in testExtract
      self.assertFloatsEqual(d["a_b_c2"], catalog.get("a_b_c2")[idx])
      File "/home/mnewsome/envs/lsst_maf/lsst/Linux64/utils/13.0/python/lsst/utils/tests.py", line 652, in assertFloatsEqual
      return assertFloatsAlmostEqual(testCase, lhs, rhs, rtol=0, atol=0, **kwargs)
      File "/home/mnewsome/envs/lsst_maf/lsst/Linux64/utils/13.0/python/lsst/utils/tests.py", line 568, in assertFloatsAlmostEqual
      diff = lhs - rhs
      TypeError: numpy boolean subtract, the - operator, is deprecated, use the bitwise_xor, the ^ operator, or the logical_xor function instead.
      

      This has been promoted from a DeprecationWarning to a TypeError as of NumPy 1.13.0, which was recently released.

        Attachments

          Container Issues

            Activity

              People

              • Assignee:
                pschella Pim Schellart
                Reporter:
                swinbank John Swinbank
                Reviewers:
                John Parejko
                Watchers:
                John Parejko, John Swinbank, Pim Schellart, Tim Jenness
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel