Skip to content

Commit 3a50f5b

Browse files
committed
(FEATURE) check if feature exists before isosurfacing
1 parent 434d802 commit 3a50f5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

LoopStructural/visualisation/model_visualisation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ def add_isosurface(self, geological_feature, value = None, isovalue=None,
247247
[type]
248248
[description]
249249
"""
250-
250+
if geological_feature is None:
251+
logger.error("Cannot add isosurface GeologicalFeature does not exist")
251252
# update the feature to make sure its current
252253
if 'update' in kwargs:
253254
geological_feature.update()

0 commit comments

Comments
 (0)