Skip to content
Snippets Groups Projects
Commit 45ae96d5 authored by Vlad Kondratiev's avatar Vlad Kondratiev
Browse files

few small improvements in snr.py

parent 7554e698
No related branches found
No related tags found
No related merge requests found
......@@ -379,7 +379,8 @@ information. The argument is the pulsar name or any other label. If argument is
if not opts.is_presto:
if opts.oneliner == "":
print (infile)
print ()
print (infile.split("/")[-1])
print ("-----------------------------------------------------------------------------------------")
print ("\t\t\t|\tQQ\t| Off\t| Polynom (%d)\t| Psrstat" % (polynom_ndeg))
print ("-----------------------------------------------------------------------------------------")
......@@ -412,7 +413,8 @@ information. The argument is the pulsar name or any other label. If argument is
else: # for .bestprof files (the same but without printing values from psrstat)
if opts.oneliner == "":
print (infile)
print ()
print (infile.split("/")[-1])
print ("-----------------------------------------------------------------------")
print ("\t\t\t|\tQQ\t| Off\t| Polynom (%d)" % (polynom_ndeg))
print ("-----------------------------------------------------------------------")
......@@ -443,7 +445,7 @@ information. The argument is the pulsar name or any other label. If argument is
# Plotting
if opts.is_plot:
if opts.is_saveonly:
pngname = ".".join(infile.split(".")[:-1]) + ".png"
pngname = ".".join(infile.split(".")[:-1]) + ".snrpy.png"
import matplotlib
matplotlib.use("Agg")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment