Skip to content

Commit

Permalink
Fixing the iteration number again (I think)
Browse files Browse the repository at this point in the history
In here, I fixed the iteration number:
gimli-org#643

In here, the iterator was changed from `range(maxIter) to `range(1, maxIter)`, without changing back PR643, making the thing wrong again.
gimli-org@d72b828
  • Loading branch information
prisae authored Jun 10, 2024
1 parent 2e38e01 commit c4a4417
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygimli/frameworks/inversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ def run(self, dataVals, errorVals=None, **kwargs):

for i in range(1, maxIter+1):
if self._preStep and callable(self._preStep):
self._preStep(i + 1, self)
self._preStep(i, self)

if self.verbose:
print("-" * 80)
Expand Down Expand Up @@ -730,7 +730,7 @@ def run(self, dataVals, errorVals=None, **kwargs):
self.showProgress(showProgress)

if self._postStep and callable(self._postStep):
self._postStep(i + 1, self)
self._postStep(i, self)

if self.robustData:
self.inv.robustWeighting()
Expand Down

0 comments on commit c4a4417

Please sign in to comment.