Skip to content

Commit

Permalink
Update _an_attenuation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fmagrini committed Sep 11, 2023
1 parent e50469f commit da92e71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion seislib/an/_an_attenuation.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,9 @@ def load_done_times():
if np.all(data_tmp == 0):
continue
fft = fourier_transform(data_tmp, window_samples)
if np.any(np.isnan(fft)):
if np.any(~np.isfinite(fft)):
continue
if np.allclose(fft, 0):
continue
store.append(fft)
times_available.append(time)
Expand Down

0 comments on commit da92e71

Please sign in to comment.