Add SPH paths (#111)

* Add path to CSiBORG1

* Update nb
This commit is contained in:
Richard Stiskalek 2024-02-26 12:56:58 +00:00 committed by GitHub
parent 1c736aaede
commit f61429be43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 28 additions and 59 deletions

View File

@ -423,7 +423,8 @@ class Paths:
if MAS == "SPH" and kind in ["density", "velocity"]:
if simname == "csiborg1":
raise ValueError("SPH field not available for CSiBORG1.")
return join(self.csiborg1_srcdir, "field",
f"sph_ramses_{str(nsim).zfill(5)}_{grid}.hdf5")
elif simname == "csiborg2_main":
return join(self.csiborg2_main_srcdir, "field",
f"chain_{nsim}_{grid}.hdf5")
@ -495,9 +496,7 @@ class Paths:
-------
str
"""
# # In case the galaxy positions of TNG300-1 were scattered..
if kind not in ["density", "potential", "radvel"]:
raise ValueError("Unsupported field type.")

File diff suppressed because one or more lines are too long