mirror of
https://github.com/Richard-Sti/csiborgtools.git
synced 2025-01-30 21:31:37 +00:00
Update dumping
This commit is contained in:
parent
a63b51bef1
commit
136c552369
1 changed files with 6 additions and 0 deletions
|
@ -189,6 +189,12 @@ if __name__ == "__main__":
|
|||
|
||||
pos, indxs = open_galaxy_positions(args.survey, MPI.COMM_WORLD)
|
||||
|
||||
if MPI.COMM_WORLD.Get_rank() == 0 and args.survey != "GW170817":
|
||||
fout = f"/mnt/extraspace/rstiskalek/CSiBORG/ascii_positions/{args.survey}_positions.npz" # noqa
|
||||
pos = csiborgtools.utils.radec_to_cartesian(pos) + 677.7 / 2
|
||||
print(f"Saving to ... `{fout}`.")
|
||||
numpy.savez(fout, pos=pos, indxs=indxs)
|
||||
|
||||
def _main(nsim):
|
||||
main(nsim, args, pos, indxs, paths,
|
||||
verbose=MPI.COMM_WORLD.Get_size() == 1)
|
||||
|
|
Loading…
Add table
Reference in a new issue