Skip to content

Commit

Permalink
getting rid of print() statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLecocq committed May 26, 2023
1 parent b6234b8 commit c3224fe
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion msnoise/plots/ccftime.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def main(sta1, sta2, filterid, components, mov_stack=1, ampli=5, seismic=False,
filterid,
mov_stack))
outfile = "ccftime " + outfile
logger.info("output to:", outfile)
logger.info("output to: %s" % outfile)
plt.savefig(outfile)
if show:
plt.show()
2 changes: 1 addition & 1 deletion msnoise/plots/data_availability.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def main(chan, show=False, outfile=None):
now = datetime.datetime.now()
now = now.strftime('data availability on %Y-%m-%d %H.%M.%S')
outfile = outfile.replace('?', now)
print("output to:", outfile)
print("output to: %s" % outfile)
plt.savefig(outfile)
if show:
plt.show()
2 changes: 1 addition & 1 deletion msnoise/plots/distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def main(filterid, components, ampli=1, show=True, outfile=None,
newname = 'distance %s-f%i' % (components,
filterid)
outfile = outfile.replace('?', newname)
print("output to:", outfile)
print("output to: %s" % outfile)
plt.savefig(outfile)
if show:
plt.show()
2 changes: 1 addition & 1 deletion msnoise/plots/dvv.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def main(mov_stack=None, dttname="M", components='ZZ', filterid=1,
filterid,
dttname))
outfile = "dvv " + outfile
print("output to:", outfile)
print("output to: %s" % outfile)
plt.savefig(outfile)
if show:
plt.show()
Expand Down
2 changes: 1 addition & 1 deletion msnoise/plots/interferogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def main(sta1, sta2, filterid, components, mov_stack=1, show=True,
filterid,
mov_stack))
outfile = "interferogram " + outfile
print("output to:", outfile)
print("output to: %s" % outfile)
plt.savefig(outfile)
if show:
plt.show()
2 changes: 1 addition & 1 deletion msnoise/plots/mwcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def plot_lags(minlag, maxlag):
filterid,
mov_stack))
outfile = "mwcs " + outfile
print("output to:", outfile)
print("output to: %s" % outfile)
plt.savefig(outfile)
if show:
plt.show()
2 changes: 1 addition & 1 deletion msnoise/plots/ppsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def main(net, sta, loc, chan, time_of_weekday=None, period_lim=None, show=False,
adf.scaled[365.] = '%Y' # set the > 1y scale to Y

if outfile:
print("output to:", outfile)
print("output to: %s" % outfile)
plt.savefig(outfile)

if show:
Expand Down
2 changes: 1 addition & 1 deletion msnoise/plots/spectime.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def main(sta1, sta2, filterid, components, mov_stack=1, ampli=5, show=False,
filterid,
mov_stack))
outfile = "spectime " + outfile
logger.info("output to:", outfile)
logger.info("output to: %s" % outfile)
plt.savefig(outfile)
if show:
plt.show()
Expand Down
4 changes: 2 additions & 2 deletions msnoise/plots/station_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def main(show=True, outfile=None):
now = datetime.datetime.now()
now = now.strftime('station map on %Y-%m-%d %H.%M.%S')
tmp = outfile.replace('?', now)
logging.debug("output to:", tmp)
logging.debug("output to: %s" % tmp)
sta_map.save('%s.html' % tmp)

# plot topography/bathymetry as an image.
Expand Down Expand Up @@ -109,7 +109,7 @@ def main(show=True, outfile=None):
now = datetime.datetime.now()
now = now.strftime('station map on %Y-%m-%d %H.%M.%S')
outfile = outfile.replace('?', now)
logging.info("output to:", outfile)
logging.info("output to: %s" % outfile)
plt.savefig(outfile)
if show:
plt.show()
Expand Down
2 changes: 1 addition & 1 deletion msnoise/plots/timing.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def main(mov_stack=None, dttname="A", components='ZZ', filterid=1,
filterid,
dttname))
outfile = "timing " + outfile
print("output to:", outfile)
print("output to: %s" % outfile)
plt.savefig(outfile)
if show:
plt.show()
Expand Down

0 comments on commit c3224fe

Please sign in to comment.