mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-05 07:41: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,6 +442,9 @@ def loadVoidCatalog(sampleDir, dataPortion="central", loadParticles=True,
|
||||||
|
|
||||||
|
|
||||||
print("Loading volumes...")
|
print("Loading volumes...")
|
||||||
|
if sample.hasWeightedVolumes:
|
||||||
|
volFile = sampleDir+"/vol_weighted_"+sample.fullName+".dat"
|
||||||
|
else:
|
||||||
volFile = sampleDir+"/vol_"+sample.fullName+".dat"
|
volFile = sampleDir+"/vol_"+sample.fullName+".dat"
|
||||||
with open(volFile, mode="rb") as File:
|
with open(volFile, mode="rb") as File:
|
||||||
chk = np.fromfile(File, dtype=np.int32,count=1)
|
chk = np.fromfile(File, dtype=np.int32,count=1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue