Browse Source

ahfullgreen: import for different versions of AhFullGreenSTF

- common handling of old and new AhfullgreenSTF versions
ahfullgreen
mmetz 4 months ago
parent
commit
e827178b0d
1 changed files with 9 additions and 2 deletions
  1. +9
    -2
      ahfullgreen.py

+ 9
- 2
ahfullgreen.py View File

@ -5,8 +5,15 @@ import os
from pyrocko import moment_tensor, model, trace
from pyrocko.gui.snuffling import Snuffling, Param, Choice, Switch, EventMarker
from pyrocko import gf
from pyrocko.ahfullgreen import \
add_seismogram, AhfullgreenSTFGauss, AhfullgreenSTFImpulse
try:
from pyrocko.ahfullgreen import \
add_seismogram, AhfullgreenSTFGauss, AhfullgreenSTFImpulse
except ImportError:
from pyrocko.ahfullgreen import (
add_seismogram,
Gauss as AhfullgreenSTFGauss,
Impulse as AhfullgreenSTFImpulse)
km = 1000.


Loading…
Cancel
Save