Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuwq0 authored Jan 25, 2024
1 parent e61431a commit 7fcfd69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions gamma/seismic_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ def traveltime(event_loc, station_loc, phase_type, eikonal):
nz = eikonal["nz"]
h = eikonal["h"]

if isinstance(phase_type, list):
phase_type = np.array(phase_type)
p_index = phase_type == "p"
s_index = phase_type == "s"
tt = np.zeros(len(phase_type), dtype=np.float32)
Expand All @@ -175,6 +177,8 @@ def grad_traveltime(event_loc, station_loc, phase_type, eikonal):
nz = eikonal["nz"]
h = eikonal["h"]

if isinstance(phase_type, list):
phase_type = np.array(phase_type)
p_index = phase_type == "p"
s_index = phase_type == "s"
dt_dr = np.zeros(len(phase_type))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="GMMA",
version="1.2.5",
version="1.2.6",
long_description="*GaMMA*: *Ga*ussian *M*ixture *M*odel *A*ssociation",
long_description_content_type="text/markdown",
packages=["gamma"],
Expand Down

0 comments on commit 7fcfd69

Please sign in to comment.