Skip to content

Commit

Permalink
CPU corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
baudren committed Oct 17, 2013
1 parent 0f5dbb6 commit 1b2dd25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CPU
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def blend_against_interp(names,spectrum_type,term):
plotfile = open(gnuplot_file,"w")
plotfile.write(headers_plot_file(spectrum_type,names,False,term))
plotfile.write("unset logscale \n")
if args.t == 'cl_log':
if args.t in ['cl_log', 'pk']:
plotfile.write("set logscale x\n")
plotfile.write("set xr [{0}:{1}]\n".format(kmin,kmax))
#plotfile.write("set yr [-0.001:0.005]\n")
Expand Down Expand Up @@ -369,8 +369,10 @@ if len(args.files)==0:
# if the first file name contains cl or pk, infer the type of desired spectrum
if ((args.files[0].rfind('cl')!=-1) and (args.t is None)):
spectrum_type='cl_lin'
args.t = 'cl_lin'
elif args.files[0].rfind('pk')!=-1:
spectrum_type='pk'
args.t = 'pk'
elif args.t is not None:
spectrum_type=args.t
else:
Expand Down

0 comments on commit 1b2dd25

Please sign in to comment.