Skip to content

Commit 276bb2d

Browse files
committed
scale fault function by a scalar magnitude
1 parent 1e52f7e commit 276bb2d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

LoopStructural/modelling/features/fault/_fault_function.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ def __init__(
307307
gx: Optional[FaultProfileFunction] = None,
308308
gy: Optional[FaultProfileFunction] = None,
309309
gz: Optional[FaultProfileFunction] = None,
310+
scale=0.5,
310311
):
311312
"""Function for characterising the displacement of a fault in 3D space
312313
given the coordinates of the structural frame
@@ -330,7 +331,7 @@ def __init__(
330331
self.gx = Composite(hw, fw)
331332
self.gy = gy
332333
self.gz = gz
333-
334+
self.scale = scale
334335
if self.gx is None:
335336
print("Gx function none setting to ones")
336337
self.gx = Ones()
@@ -350,7 +351,7 @@ def __init__(
350351

351352
def __call__(self, gx, gy, gz):
352353

353-
return self.gx(gx) * self.gy(gy) * self.gz(gz)
354+
return self.scale * self.gx(gx) * self.gy(gy) * self.gz(gz)
354355

355356
def to_dict(self) -> dict:
356357
return {

0 commit comments

Comments
 (0)