Skip to content

Commit 6a8d940

Browse files
committed
fix: adding copy method for lambda
1 parent 50274a7 commit 6a8d940

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

LoopStructural/modelling/features/_lambda_geological_feature.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,14 @@ def evaluate_gradient(self, pos: np.ndarray, ignore_regions=False) -> np.ndarray
9090

9191
def get_data(self, value_map: Optional[dict] = None):
9292
return
93+
94+
def copy(self, name: Optional[str] = None):
95+
return LambdaGeologicalFeature(
96+
self.function,
97+
name if name is not None else f'{self.name}_copy',
98+
self.gradient_function,
99+
self.model,
100+
self.regions,
101+
self.faults,
102+
self.builder,
103+
)

0 commit comments

Comments
 (0)