mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-05 15:51:12 +00:00
cleaned up vide toolkit calls
This commit is contained in:
parent
288e2263b6
commit
438407be74
4 changed files with 4 additions and 8 deletions
|
@ -37,7 +37,6 @@ from netCDF4 import Dataset
|
|||
from vide.backend.classes import *
|
||||
from vide.backend.cosmologyTools import *
|
||||
import pickle
|
||||
import vide.apTools as vp
|
||||
import scipy.interpolate as interpolate
|
||||
|
||||
NetCDFFile = Dataset
|
||||
|
@ -274,7 +273,7 @@ def launchPrep(sample, binPath, workDir=None, inputDataDir=None,
|
|||
|
||||
# add to sample info file
|
||||
if sample.dataType == "observation":
|
||||
(boxVol, nbar) = vp.getSurveyProps(sample.maskFile, sample.zRange[0],
|
||||
(boxVol, nbar) = getSurveyProps(sample.maskFile, sample.zRange[0],
|
||||
sample.zRange[1], sample.zRange[0], sample.zRange[1], "all",
|
||||
useComoving=useComoving)
|
||||
else:
|
||||
|
|
|
@ -24,7 +24,6 @@ import numpy as np
|
|||
from netCDF4 import Dataset
|
||||
import sys
|
||||
from vide.backend import *
|
||||
import vide.apTools as vp
|
||||
import pickle
|
||||
from .periodic_kdtree import PeriodicCKDTree
|
||||
import os
|
||||
|
@ -123,7 +122,7 @@ def loadPart(sampleDir):
|
|||
# else:
|
||||
# maskFile = sampleDir+"/"+os.path.basename(sample.maskFile)
|
||||
# print "Using maskfile found in:", maskFile
|
||||
# props = vp.getSurveyProps(maskFile, sample.zBoundary[0],
|
||||
# props = getSurveyProps(maskFile, sample.zBoundary[0],
|
||||
# sample.zBoundary[1],
|
||||
# sample.zBoundary[0],
|
||||
# sample.zBoundary[1], "all",
|
||||
|
@ -173,7 +172,7 @@ def getVolNorm(sampleDir):
|
|||
# else:
|
||||
# maskFile = sampleDir+"/"+os.path.basename(sample.maskFile)
|
||||
# print "Using maskfile found in:", maskFile
|
||||
# props = vp.getSurveyProps(maskFile, sample.zBoundary[0],
|
||||
# props = getSurveyProps(maskFile, sample.zBoundary[0],
|
||||
# sample.zBoundary[1],
|
||||
# sample.zBoundary[0],
|
||||
# sample.zBoundary[1], "all",
|
||||
|
|
|
@ -24,7 +24,6 @@ from vide.voidUtil import *
|
|||
from .plotDefs import *
|
||||
import numpy as np
|
||||
import os
|
||||
import vide.apTools as vp
|
||||
from scipy.optimize import curve_fit
|
||||
from scipy.interpolate import interp1d
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue