8000 Remove numpy.int and numpy.float · madprog/GeneticAlgorithmPython@203260b · GitHub
[go: up one dir, main page]

Skip to content

Commit 203260b

Browse files
committed
Remove numpy.int and numpy.float
These aliases are deprecated in numpy, can be ignored, since it's the same as regular int or float
1 parent 2510727 commit 203260b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygad.py

Lines changed: 2 additions & 2 deletions
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)
0