Skip to content

Commit

Permalink
fix: names kwarg wasn't used for multiple slices
Browse files Browse the repository at this point in the history
  • Loading branch information
Lachlan Grose committed Oct 11, 2021
1 parent f4077d1 commit daebcf0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions LoopStructural/visualisation/model_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ def add_isosurface(self,
slices_ = np.linspace(min_val + var * 0.05,
max_val - var * 0.05,
nslices)
base_name = kwargs.get('name',geological_feature.name)

region = kwargs.get('region', None)
if region is not None:
Expand Down Expand Up @@ -307,10 +308,7 @@ def add_isosurface(self,
logger.warning("Cannot isosurface {} at {}, skipping".format(geological_feature.name,isovalue))
continue


name = geological_feature.name
name = kwargs.pop('name', name)
name += '_iso_%f' % isovalue
name += '{}_{}'.format(basename,isovalue)
if names is not None and len(names) == len(slices_):
name = names[i]

Expand Down

0 comments on commit daebcf0

Please sign in to comment.