This commit is contained in:
Guilhem Lavaux 2014-11-20 10:57:46 +01:00
commit 005b6624fd
2 changed files with 3 additions and 1 deletions

View file

@ -105,6 +105,8 @@ SimulationLoader *gadgetLoader(const std::string& snapshot, double Mpc_unitLengt
int num_files; int num_files;
SimuData *d; SimuData *d;
cout << " File to load is:" << snapshot.c_str() << endl;
try try
{ {
d = loadGadgetMulti(snapshot.c_str(), -1, 0); d = loadGadgetMulti(snapshot.c_str(), -1, 0);

View file

@ -271,7 +271,7 @@ def launchGenerate(sample, binPath, workDir=None, inputDataDir=None,
if sample.dataType == "observation": if sample.dataType == "observation":
(boxVol, nbar) = vp.getSurveyProps(sample.maskFile, sample.zRange[0], (boxVol, nbar) = vp.getSurveyProps(sample.maskFile, sample.zRange[0],
sample.zRange[1], sample.zRange[0], sample.zRange[1], "all", sample.zRange[1], sample.zRange[0], sample.zRange[1], "all",
useLCDM=useComoving) useComoving=useComoving)
else: else:
iX = float(sample.mySubvolume[0]) iX = float(sample.mySubvolume[0])
iY = float(sample.mySubvolume[1]) iY = float(sample.mySubvolume[1])