Skip to content

Commit 3e472d7

Browse files
maint: fix numpy float construction
numpy.float was deprecated as it was just python's float. using np.float64 explicitly
1 parent eecb0ff commit 3e472d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_output_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def test_json_converter_numpy_types():
366366
ex_int = numpy.int_(9)
367367
ex_np_array = numpy.array([1, 2, 3, 4, 5])
368368
ex_np_int_array = numpy.int_([5, 4, 3])
369-
ex_np_float = numpy.float(0.5)
369+
ex_np_float = numpy.float64(0.5)
370370

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

0 commit comments

Comments
 (0)