Skip to content

Commit

Permalink
Fix pierce calculation.
Browse files Browse the repository at this point in the history
I'm not sure why I'm getting a NumPy array here, but probably once the
lists of arrays goes away, it should fix itself.
  • Loading branch information
QuLogic committed Jan 27, 2015
1 parent 9f9969a commit f55429a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion obspy/taup/seismic_phase.py
Expand Up @@ -8,6 +8,8 @@
from itertools import count
import math

import numpy as np

from .arrival import Arrival
from .helper_classes import TauModelError, TimeDist

Expand Down Expand Up @@ -884,7 +886,7 @@ def calc_pierce_from_arrival(self, currArrival):
distB = tauBranch.dist[rayNum + 1]
timeB = tauBranch.time[rayNum + 1]
branchDist += distRatio * (distB - distA) + distA
prevBranchTime = branchTime
prevBranchTime = np.array(branchTime, copy=True)
branchTime += distRatio * (timeB - timeA) + timeA
if isDownGoing:
branchDepth = min(tauBranch.botDepth, turnDepth)
Expand Down

0 comments on commit f55429a

Please sign in to comment.