Skip to content

Commit

Permalink
instance krill warning for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
MDCHAMP committed Feb 25, 2022
1 parent 9afcf9a commit 32e75c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/freelunch/optimisers.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def local_motion(self,herd,gen):
winner, loser = self.winners_and_losers(herd)
spread = loser[0] - winner[0]
if spread == 0:
warnings.warn(util.KrillSingularityWarning)
warnings.warn(util.KrillSingularityWarning())
spread = 1e-8
# Alpha stores local [0] and target [1] for each krill
alpha = [np.zeros_like(herd[1]), np.zeros_like(herd[1])]
Expand Down

0 comments on commit 32e75c2

Please sign in to comment.