mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
Fixed indexing bug in catalogUtil
This commit is contained in:
parent
a4cafc0341
commit
387dc4d853
1 changed files with 2 additions and 2 deletions
|
@ -466,7 +466,7 @@ def loadVoidCatalog(sampleDir, dataPortion="central", loadParticles=True,
|
||||||
zoneIDs = []))
|
zoneIDs = []))
|
||||||
|
|
||||||
for p in xrange(numZones):
|
for p in xrange(numZones):
|
||||||
zoneID = np.fromfile(File, dtype=np.int32,count=1)
|
zoneID = np.fromfile(File, dtype=np.int32,count=1)[0]
|
||||||
catalog.void2Zones[iZ].zoneIDs.append(zoneID)
|
catalog.void2Zones[iZ].zoneIDs.append(zoneID)
|
||||||
|
|
||||||
|
|
||||||
|
@ -482,7 +482,7 @@ def loadVoidCatalog(sampleDir, dataPortion="central", loadParticles=True,
|
||||||
partIDs = []))
|
partIDs = []))
|
||||||
|
|
||||||
for p in xrange(numPart):
|
for p in xrange(numPart):
|
||||||
partID = np.fromfile(File, dtype=np.int32,count=1)
|
partID = np.fromfile(File, dtype=np.int32,count=1)[0]
|
||||||
catalog.zones2Parts[iZ].partIDs.append(partID)
|
catalog.zones2Parts[iZ].partIDs.append(partID)
|
||||||
|
|
||||||
return catalog
|
return catalog
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue