Skip to content

Commit

Permalink
fix print
Browse files Browse the repository at this point in the history
  • Loading branch information
psmsmets committed Dec 22, 2021
1 parent e3a1b8e commit f816c64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xcorr/scripts/snr.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def estimate_snr_for_day(
snr = []
for pair in pairs:
if debug:
print('.'*6, str(pair.values))
print('.'*6, str(pair))
try:
ds = xcorr.read(xcorr.io.ncfile(pair, day, root), fast=True)
if ds is None:
Expand All @@ -58,7 +58,7 @@ def estimate_snr_for_day(
.signal.taper(max_length=3/2) # filter artefacts
)
except Exception as e:
print(f'Error @ process cc {str(pair.values)} {day}:', e)
print(f'Error @ process cc {str(pair)} {day}:', e)
continue
try:
s = (cc.lag >= ds.distance/1.50) & (cc.lag <= ds.distance/1.46)
Expand Down

0 comments on commit f816c64

Please sign in to comment.