Skip to content

Commit c1c9b88

Browse files
authored
Merge pull request ahmedfgad#152 from EgorBlagov/fix-numpy-deprecated-types
Remove numpy.int and numpy.float
2 parents 2510727 + 203260b commit c1c9b88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygad.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
class GA:
1010

11-
supported_int_types = [int, numpy.int, numpy.int8, numpy.int16, numpy.int32, numpy.int64, numpy.uint, numpy.uint8, numpy.uint16, numpy.uint32, numpy.uint64]
12-
supported_float_types = [float, numpy.float, numpy.float16, numpy.float32, numpy.float64]
11+
supported_int_types = [int, numpy.int8, numpy.int16, numpy.int32, numpy.int64, numpy.uint, numpy.uint8, numpy.uint16, numpy.uint32, numpy.uint64]
12+
supported_float_types = [float, numpy.float16, numpy.float32, numpy.float64]
1313
supported_int_float_types = supported_int_types + supported_float_types
1414

1515
def __init__(self,

0 commit comments

Comments
 (0)