Skip to content

Commit

Permalink
Minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
geojunky committed Jul 13, 2023
1 parent 526407d commit 8285f9d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions seismic/pick_harvester/local/pick_eqt.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,14 @@ def outputConfigParameters():

# get streams
stz, stn, ste = [], [], []
stz = get_stream(fds, nc, sc, zchan, cTime, cTime + cStep, loc_pref_dict, logger=logger)
if(len(stz)): stn = get_stream(fds, nc, sc, nchan, cTime, cTime + cStep, loc_pref_dict, logger=logger)
if(len(stn)): ste = get_stream(fds, nc, sc, echan, cTime, cTime + cStep, loc_pref_dict, logger=logger)
try:
stz = get_stream(fds, nc, sc, zchan, cTime, cTime + cStep, loc_pref_dict, logger=logger)
if(len(stz)): stn = get_stream(fds, nc, sc, nchan, cTime, cTime + cStep, loc_pref_dict, logger=logger)
if(len(stn)): ste = get_stream(fds, nc, sc, echan, cTime, cTime + cStep, loc_pref_dict, logger=logger)
except Exception as e:
logger.error('\t' + str(e))
logger.warning('\tError encountered while fetching data. Skipping along..')
# end try

if(len(ste)): # we have data in all three streams
processData(stz.traces[0], stn.traces[0], ste.traces[0], model, picking_args,
Expand Down

0 comments on commit 8285f9d

Please sign in to comment.