mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
fixed bug in load particles
This commit is contained in:
parent
16909e8e78
commit
dac7ca2113
1 changed files with 3 additions and 3 deletions
|
@ -273,11 +273,11 @@ class Catalog:
|
||||||
sampleInfo = None
|
sampleInfo = None
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
def loadVoidCatalog(sampleDir, dataPortion="central", loadPart=True):
|
def loadVoidCatalog(sampleDir, dataPortion="central", loadParticles=True):
|
||||||
# loads a void catalog
|
# loads a void catalog
|
||||||
# sampleDir: path to VIDE output directory
|
# sampleDir: path to VIDE output directory
|
||||||
# dataPortion: "central" or "all"
|
# dataPortion: "central" or "all"
|
||||||
# loadPart: if True, also load particle information
|
# loadParticles: if True, also load particle information
|
||||||
|
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
|
@ -374,7 +374,7 @@ def loadVoidCatalog(sampleDir, dataPortion="central", loadPart=True):
|
||||||
|
|
||||||
iLine += 1
|
iLine += 1
|
||||||
|
|
||||||
if loadPart:
|
if loadParticles:
|
||||||
print "Loading all particles..."
|
print "Loading all particles..."
|
||||||
partData, boxLen, volNorm, isObservationData, ranges = loadPart(sampleDir)
|
partData, boxLen, volNorm, isObservationData, ranges = loadPart(sampleDir)
|
||||||
numPartTot = len(partData)
|
numPartTot = len(partData)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue