bug fixes to plotting. prepareCatalogs now handles gadget files; prepareGadgetCatalogs now deprecated

This commit is contained in:
P.M. Sutter 2012-11-14 04:37:30 -06:00
parent afe22f71fa
commit 390fb2f4e2
4 changed files with 133 additions and 81 deletions

View file

@ -5,6 +5,7 @@
from void_python_tools.backend import *
from void_python_tools.plotting import *
import imp
import pickle
# ------------------------------------------------------------------------------
@ -60,6 +61,10 @@ for sample in dataSampleList:
if not os.access(zobovDir, os.F_OK):
os.makedirs(zobovDir)
# save this sample's information
with open(zobovDir+"/sample_info.dat", 'wb') as output:
pickle.dump(sample, output, pickle.HIGHEST_PROTOCOL)
# ---------------------------------------------------------------------------
if (startCatalogStage <= 1) and (endCatalogStage >= 1) and not sample.isCombo:
print " Extracting tracers from catalog...",