Skip to content

Commit

Permalink
Merge pull request #205 from p-lauer/patch-6
Browse files Browse the repository at this point in the history
Bugfix for restart function
  • Loading branch information
thouska authored Mar 7, 2019
2 parents 7525462 + 0c78800 commit 9a8d4d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spotpy/algorithms/fscabc.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ def sample(self, repetitions, eb=48, a=(1 / 10), peps=0.0001, kpow=5, ownlimit=F

if self.breakpoint == 'write' or self.breakpoint == 'readandwrite'\
and icall >= lastbackup+self.backup_every_rep:
work = (icall, work, gnrng, r)
self.write_breakdata(self.dbname, work)
savework = (icall, work, gnrng, r)
self.write_breakdata(self.dbname, savework)
lastbackup = icall
if icall >= repetitions:
print('*** OPTIMIZATION SEARCH TERMINATED BECAUSE THE LIMIT')
Expand Down

0 comments on commit 9a8d4d7

Please sign in to comment.