mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
merge
This commit is contained in:
commit
615e60c5d2
4 changed files with 36 additions and 10 deletions
|
@ -32,6 +32,8 @@ import shutil
|
|||
import glob
|
||||
import subprocess
|
||||
import sys
|
||||
import matplotlib
|
||||
matplotlib.use('Agg')
|
||||
from pylab import figure
|
||||
from netCDF4 import Dataset
|
||||
from void_python_tools.backend.classes import *
|
||||
|
@ -1266,6 +1268,7 @@ def launchFit(sample, stack, logFile=None, voidDir=None, figDir=None,
|
|||
figure(1).savefig(figDir+"/stackedVoid_"+sampleName+\
|
||||
"_"+runSuffix+".png")
|
||||
|
||||
print "Done!"
|
||||
sys.stdout = sys.__stdout__
|
||||
#sys.stderr = sys.__stderr__
|
||||
if jobSuccessful(logFile, "Done!\n"):
|
||||
|
@ -1451,11 +1454,14 @@ def launchHubble(dataPortions=None, dataSampleList=None, logDir=None,
|
|||
#vp.do_all_obs(zbase, expList, workDir+"/avedistortion_",
|
||||
vp.do_all_obs(zbase, expList, aveDistList,
|
||||
rlist, plotTitle=plotTitle, plotAve=True)
|
||||
figure(1).savefig(figDir+"/hubble_"+sampleName+"_"+thisDataPortion+\
|
||||
figure(1).savefig(figDir+"/hubble_"+setName+"_"+sampleName+"_"+\
|
||||
thisDataPortion+\
|
||||
".eps",bbox_inches='tight')
|
||||
figure(1).savefig(figDir+"/hubble_"+sampleName+"_"+thisDataPortion+\
|
||||
figure(1).savefig(figDir+"/hubble_"+setName+"_"+sampleName+"_"+\
|
||||
thisDataPortion+\
|
||||
".pdf",bbox_inches='tight')
|
||||
figure(1).savefig(figDir+"/hubble_"+sampleName+"_"+thisDataPortion+\
|
||||
figure(1).savefig(figDir+"/hubble_"+setName+"_"+sampleName+"_"+\
|
||||
thisDataPortion+\
|
||||
".png",bbox_inches='tight')
|
||||
else:
|
||||
print "Skipping plot"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue