Hey,
I have
from obspy.taup import TauPyModel
model = TauPyModel(model='prem')
arrival = model.get_travel_times(source_depth_in_km=evdp, distance_in_degree=gcarc, phase_list=['P','p','Pn']);
The model.get_travel_times
always prints out a long list of numbers that look like the following:
20.3
0.0
15.0
20.3
24.4
220.0
400.0
670.0
0.0
15.0
20.3
24.4
220.0
400.0
670.0
0.0
15.0
20.3
24.4
220.0
400.0
670.0
This is very annoying especially when I want to get arrival times for multiple events (with a loop). I looked at the arrival
variable itself and it looks correct:
[<obspy.taup.helper_classes.Arrival object at 0x7fc402bc7f50>, <obspy.taup.helper_classes.Arrival object at 0x7fc402bc7fd0>]
with two arrival objects there. It appears that the list of numbers is output from the method itself. Has anyone encountered this before or knows about how to resolve it? I will try re-install Obspy for now.