Skip to content

Commit 08a8b56

Browse files
authored
remove deprecated numpy types
1 parent 2510727 commit 08a8b56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pygad.py

Lines changed: 3 additions & 3 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,
@@ -3691,4 +3691,4 @@ def load(filename):
36913691
raise FileNotFoundError("Error reading the file {filename}. Please check your inputs.".format(filename=filename))
36923692
except:
36933693
raise BaseException("Error loading the file. If the file already exists, please reload all the functions previously used (e.g. fitness function).")
3694-
return ga_in
3694+
return ga_in

0 commit comments

Comments
 (0)