Skip to content

Commit

Permalink
Fixing a minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
geojunky committed Nov 7, 2024
1 parent bab1f12 commit ae09ed5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion seismic/extract_event_traces.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def extract_data(catalog, inventory, waveform_getter, event_trace_datafile,

# initialize trace-data organization scheme
# P-waveforms are stored under root group 'waveforms' for backward compatibility
tf = '.datetime:%Y-%m-%dT%H:%M:%S'
tf = '.datetime:%Y-%m-%dT%H:%M:%S.%f'
h5_index = 'waveforms/{wave_type}/{network}.{station}.{location}/{event_time%s}/' % tf + \
'{channel}_{starttime%s}_{endtime%s}' % (tf, tf)

Expand Down
3 changes: 3 additions & 0 deletions seismic/swp_station_orientations.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
def checklen(st, hrs):
# checks to see if there is enough downloaded data to run program
L=len(st)

if(L != 3): return True

for i in np.arange((L)):
if (UTCDateTime(st[i].stats.endtime)-UTCDateTime(st[i].stats.starttime))+100 < hrs:
return True
Expand Down

0 comments on commit ae09ed5

Please sign in to comment.