Skip to content

Commit 80bc060

Browse files
committed
(BUG) adding min/max to lambda
1 parent 6465af9 commit 80bc060

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

LoopStructural/modelling/features/lambda_geological_feature.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99

1010

1111
class LambdaGeologicalFeature:
12-
def __init__(self,function = None,name = 'unnamed_lambda', gradient_function = None):
12+
def __init__(self,function = None,name = 'unnamed_lambda', gradient_function = None, model = None):
1313
self.function = function
1414
self.name = name
1515
self.gradient_function = gradient_function
16+
self.model = model
1617
def evaluate_value(self, xyz):
1718
v = np.zeros((xyz.shape[0]))
1819
if self.function is None:
@@ -27,5 +28,9 @@ def evaluate_gradient(self,xyz):
2728
else:
2829
v[:,:] = self.gradient_function(xyz)
2930
return v
31+
def min(self):
32+
return 0
33+
def max(self):
34+
return 0
3035

3136

0 commit comments

Comments
 (0)