Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when running taup.tt #4

Open
Zaur2302 opened this issue Sep 16, 2023 · 0 comments
Open

error when running taup.tt #4

Zaur2302 opened this issue Sep 16, 2023 · 0 comments

Comments

@Zaur2302
Copy link

The code stops at:
.....
20 0.01
top_p 1693.0749299719887 bot_p 1604.3571428571424 radius_of_planet 6371.0 top_depth 19.5914894768942 bot_depth 22.528838091875922
b 116.35465802326787
Traceback (most recent call last):

Traceback (most recent call last):
File "/home/user/.local/lib/python3.8/site-packages/obspy/taup/tau_model.py", line 233, in load_from_depth_cache
value = self._depth_cache.pop(depth)
KeyError: 20

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "taup_tt.py", line 30, in
arrivals = model.get_travel_times(source_depth_in_km=dep, distance_in_degree=dist, phase_list=["P","p","S","s"])
File "/home/user/.local/lib/python3.8/site-packages/obspy/taup/tau.py", line 700, in get_travel_times
tt.run()
File "/home/user/.local/lib/python3.8/site-packages/obspy/taup/taup_time.py", line 37, in run
self.depth_correct(self.source_depth, self.receiver_depth)
File "/home/user/.local/lib/python3.8/site-packages/obspy/taup/taup_time.py", line 49, in depth_correct
self.depth_corrected_model = self.model.depth_correct(depth)
File "/home/user/.local/lib/python3.8/site-packages/obspy/taup/tau_model.py", line 226, in depth_correct
return self.load_from_depth_cache(depth)
File "/home/user/.local/lib/python3.8/site-packages/obspy/taup/tau_model.py", line 235, in load_from_depth_cache
value = self._load_from_depth_cache(depth)
File "/home/user/.local/lib/python3.8/site-packages/obspy/taup/tau_model.py", line 246, in _load_from_depth_cache
depth_corrected = self.split_branch(depth)
File "/home/user/.local/lib/python3.8/site-packages/obspy/taup/tau_model.py", line 272, in split_branch
split_info = out_s_mod.split_layer(depth, is_p_wave)
File "/home/user/.local/lib/python3.8/site-packages/obspy/taup/slowness_model.py", line 1762, in split_layer
p = evaluate_at_bullen(s_layer, depth, self.radius_of_planet)
File "/home/user/.local/lib/python3.8/site-packages/obspy/taup/slowness_layer.py", line 289, in evaluate_at_bullen
or math.isinf(a_denominator)
UnboundLocalError: local variable 'a_denominator' referenced before assignment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant