Skip to content

Commit

Permalink
maint: fix numpy float construction
Browse files Browse the repository at this point in the history
numpy.float was deprecated as it was just python's float. using
np.float64 explicitly
  • Loading branch information
wagner-intevation committed Jun 30, 2023
1 parent eecb0ff commit 3e472d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_output_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def test_json_converter_numpy_types():
ex_int = numpy.int_(9)
ex_np_array = numpy.array([1, 2, 3, 4, 5])
ex_np_int_array = numpy.int_([5, 4, 3])
ex_np_float = numpy.float(0.5)
ex_np_float = numpy.float64(0.5)

assert 9 == hug.output_format._json_converter(ex_int)
assert [1, 2, 3, 4, 5] == hug.output_format._json_converter(ex_np_array)
Expand Down

0 comments on commit 3e472d7

Please sign in to comment.