Skip to content

Commit

Permalink
np.int is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpope committed Sep 1, 2024
1 parent 9644a83 commit c9c11da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/de.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def optimize(self, ngen):
return res

def __call__(self, ngen=1):
t = np.zeros(3, np.int)
t = np.zeros(3, int)

for i in range(self.n_pop):
self._fitness[i] = self.m * self.minfun(self._population[i,:])
Expand Down

0 comments on commit c9c11da

Please sign in to comment.