mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
weighted volumes propagated to catalog loading routine
This commit is contained in:
parent
78678881af
commit
1a678eda5d
1 changed files with 4 additions and 1 deletions
|
@ -442,7 +442,10 @@ def loadVoidCatalog(sampleDir, dataPortion="central", loadParticles=True,
|
|||
|
||||
|
||||
print("Loading volumes...")
|
||||
volFile = sampleDir+"/vol_"+sample.fullName+".dat"
|
||||
if sample.hasWeightedVolumes:
|
||||
volFile = sampleDir+"/vol_weighted_"+sample.fullName+".dat"
|
||||
else:
|
||||
volFile = sampleDir+"/vol_"+sample.fullName+".dat"
|
||||
with open(volFile, mode="rb") as File:
|
||||
chk = np.fromfile(File, dtype=np.int32,count=1)
|
||||
vols = np.fromfile(File, dtype=np.float32,count=numPartTot)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue