Skip to content

Commit 178d78b

Browse files
committed
fix: allow no isovalue for surfaces. Take middle as value
1 parent 9b23bd3 commit 178d78b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

LoopStructural/modelling/features/_base_geological_feature.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def __tojson__(self):
271271

272272
def surfaces(
273273
self,
274-
value: Union[float, int, List[Union[float, int]]],
274+
value: Optional[Union[float, int, List[Union[float, int]]]] = None,
275275
bounding_box=None,
276276
name: Optional[Union[List[str], str]] = None,
277277
colours: Optional[Union[str, np.ndarray]] = None,
@@ -293,6 +293,7 @@ def surfaces(
293293
raise ValueError("Must specify bounding box")
294294
bounding_box = self.model.bounding_box
295295
regions = self.regions
296+
296297
try:
297298
self.regions = [
298299
r for r in self.regions if r.name != self.name and r.parent.name != self.name

0 commit comments

Comments
 (0)