Browse Source

experiment: apply stfs in 'pre' mode

alaska-bug
Sebastian Heimann 4 months ago
parent
commit
5c96858fc1
  1. 1
      src/problems/cmt/problem.py
  2. 1
      src/problems/double_dc/problem.py

1
src/problems/cmt/problem.py

@ -45,6 +45,7 @@ class CMTProblemConfig(ProblemConfig):
event.depth = 0.
base_source = gf.MTSource.from_pyrocko_event(event)
base_source.stf_mode = 'pre'
stf = STFType.base_stf(self.stf_type)
stf.duration = event.duration or 0.0

1
src/problems/double_dc/problem.py

@ -28,6 +28,7 @@ class DoubleDCProblemConfig(ProblemConfig):
base_source = gf.DoubleDCSource.from_pyrocko_event(event)
base_source.stf = gf.HalfSinusoidSTF(duration=event.duration or 0.0)
base_source.stf_mode = 'pre'
subs = dict(
event_name=event.name,

Loading…
Cancel
Save