Skip to content

Commit

Permalink
Drop use of numpy constants for compatibility with 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tomalrussell committed Jun 27, 2024
1 parent 92e4edc commit cc8616d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_damages.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test damage assessment"""

import os

import numpy
Expand Down Expand Up @@ -115,7 +116,7 @@ def test_linear_curve_interpolation(curve):
def test_linear_curve_out_of_bounds(curve):
# sense-check out-of-bounds
intensities = numpy.array(
[numpy.NINF, -999, numpy.NZERO, 0, 30, 999, numpy.inf, numpy.nan]
[-numpy.inf, -999, -0.0, 0, 30, 999, numpy.inf, numpy.nan]
)
expected = numpy.array([0, 0, 0, 0, 1, 1, 1, numpy.nan])
actual = curve.damage_fraction(intensities)
Expand Down

0 comments on commit cc8616d

Please sign in to comment.