Skip to content

Commit

Permalink
Remove use of singleton aliases removed in Numpy 2
Browse files Browse the repository at this point in the history
These are just straight aliases for `np.inf` and `np.nan`, and all
aliases bar those two will be removed in Numpy 2.
  • Loading branch information
jakelishman committed Sep 22, 2023
1 parent dd94d6c commit 430dfeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/python/circuit/test_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,7 @@ def test_complex_angle_raises_when_not_supported(self):
def test_operating_on_a_parameter_with_a_non_float_will_raise(self):
"""Verify operations between a Parameter and a non-float will raise."""

bad_constants = ["1", numpy.Inf, numpy.NaN, None, {}, []]
bad_constants = ["1", numpy.inf, numpy.nan, None, {}, []]

x = Parameter("x")

Expand Down

0 comments on commit 430dfeb

Please sign in to comment.