weighted volumes propagated to catalog loading routine

This commit is contained in:
Paul M. Sutter 2024-06-07 12:18:44 +02:00
parent 78678881af
commit 1a678eda5d

View file

@ -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)