Skip to content

Commit

Permalink
BUG: fix scipy.odr to consider given delta0 argument
Browse files Browse the repository at this point in the history
  • Loading branch information
robertuhl authored and tylerjereddy committed Mar 20, 2021
1 parent cd442f8 commit aba9eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scipy/odr/odrpack.py
Expand Up @@ -1086,7 +1086,7 @@ def run(self):
'ndigit', 'taufac', 'sstol', 'partol', 'maxit', 'stpb',
'stpd', 'sclb', 'scld', 'work', 'iwork']

if self.delta0 is not None and self.job % 1000 // 10 == 1:
if self.delta0 is not None and (self.job // 10000) % 10 == 0:
# delta0 provided and fit is not a restart
self._gen_work()

Expand Down

0 comments on commit aba9eeb

Please sign in to comment.