mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
fix for sky position loading
This commit is contained in:
parent
dfe79b3a84
commit
f9d08d8b6d
1 changed files with 3 additions and 2 deletions
|
@ -383,8 +383,9 @@ def loadVoidCatalog(sampleDir, dataPortion="central", loadParticles=True,
|
||||||
iLine += 1
|
iLine += 1
|
||||||
|
|
||||||
iLine = 0
|
iLine = 0
|
||||||
for line in open(sampleDir+"/"+prefix+"sky_positions_"+dataPortion+"_"+sample.fullName+".out"):
|
filName = sampleDir+"/"+prefix+"sky_positions_"+dataPortion+"_"+sample.fullName+".out"
|
||||||
line = line.split()
|
catData = np.loadtxt(fileName, comments="#")
|
||||||
|
for line in catData:
|
||||||
catalog.voids[iLine].RA = float(line[0])
|
catalog.voids[iLine].RA = float(line[0])
|
||||||
catalog.voids[iLine].Dec = float(line[1])
|
catalog.voids[iLine].Dec = float(line[1])
|
||||||
iLine += 1
|
iLine += 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue