Skip to content

Commit

Permalink
fix: adding callback to model.update
Browse files Browse the repository at this point in the history
  • Loading branch information
Lachlan Grose committed Sep 14, 2021
1 parent 1eca6f5 commit 1fe5fad
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions LoopStructural/modelling/core/geological_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1627,10 +1627,7 @@ def update(self,verbose=False,progressbar=True):
buf=0
for f in self.features:
pbar.set_description('Interpolating {}'.format(f.name))
f.builder.up_to_date()
if f.type == 'fault':
for i in range(3): pbar.update()
else: pbar.update()
f.builder.up_to_date(callback=pbar.update)


if verbose:
Expand Down

0 comments on commit 1fe5fad

Please sign in to comment.