Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c1c9b88

Browse files
Merge pull request #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

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)

AltStyle によって変換されたページ (->オリジナル) /