From 0c78800609bb4439ff9e880b47140928124c149e Mon Sep 17 00:00:00 2001 From: Patrick Lauer Date: Thu, 7 Mar 2019 11:22:20 +0100 Subject: [PATCH] Bugfix for restart function --- spotpy/algorithms/fscabc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spotpy/algorithms/fscabc.py b/spotpy/algorithms/fscabc.py index 8ec8dce7..19f48dc6 100644 --- a/spotpy/algorithms/fscabc.py +++ b/spotpy/algorithms/fscabc.py @@ -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')