Skip to content

Commit

Permalink
Update data_pipeline.py
Browse files Browse the repository at this point in the history
  • Loading branch information
YijianZhou committed Apr 8, 2021
1 parent c17ad74 commit 6722e8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def get_picks(date, pick_dir):
('p_snr','O'),
('freq_dom','O')]
fname = str(date.date) + '.pick'
pick_path = os.path.join(pick_dir, fname)
pick_path = os.path.join(pick_dir, fname)、
if not os.path.exists(pick_path): return np.array([], dtype=dtype)
f=open(pick_path); lines=f.readlines(); f.close()
for line in lines:
codes = line.split(',')
Expand Down

0 comments on commit 6722e8c

Please sign in to comment.