mirror of
https://github.com/Richard-Sti/csiborgtools_public.git
synced 2025-07-06 22:41:11 +00:00
Add cleaner paths (#43)
* ignore venv * ignore pylians if unavaible * Edit loading paths * Edit paths * Stop having default paths * Add nb * Add glamdring paths --------- Co-authored-by: Richard Stiskalek <dc-stis1@login8b.pri.cosma7.alces.network> Co-authored-by: Richard Stiskalek <dc-stis1@login8a.pri.cosma7.alces.network>
This commit is contained in:
parent
1344fa40b6
commit
e0d3854277
15 changed files with 1421 additions and 50 deletions
|
@ -34,7 +34,7 @@ comm = MPI.COMM_WORLD
|
|||
rank = comm.Get_rank()
|
||||
nproc = comm.Get_size()
|
||||
|
||||
paths = csiborgtools.read.CSiBORGPaths()
|
||||
paths = csiborgtools.read.CSiBORGPaths(**csiborgtools.paths_glamdring)
|
||||
dumpdir = "/mnt/extraspace/rstiskalek/csiborg/"
|
||||
loaddir = join(dumpdir, "temp")
|
||||
cols_collect = [("npart", numpy.int64), ("totpartmass", numpy.float64),
|
||||
|
@ -118,8 +118,7 @@ for i, nsim in enumerate(paths.ic_ids(tonew=False)):
|
|||
out_collected = csiborgtools.read.combine_splits(
|
||||
utils.Nsplits, nsnap, nsim, partreader, cols_collect,
|
||||
remove_splits=True, verbose=False)
|
||||
fname = join(paths.dumpdir, "ramses_out_{}_{}.npy"
|
||||
.format(str(nsim).zfill(5), str(nsnap).zfill(5)))
|
||||
fname = paths.hcat_path(nsim)
|
||||
print("Saving results to `{}`.".format(fname))
|
||||
numpy.save(fname, out_collected)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue