From 881bc7b2343f2ff118e0409f61304ba68f63fa56 Mon Sep 17 00:00:00 2001 From: Mayeul Aubin Date: Mon, 24 Mar 2025 17:33:27 +0100 Subject: [PATCH] bugfix lightcone output --- parameters_card.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parameters_card.py b/parameters_card.py index df03911..cb1a14b 100644 --- a/parameters_card.py +++ b/parameters_card.py @@ -188,9 +188,9 @@ def parse_arguments_card(parsed_args): if card_dict["OutputSnapshotsBase"] is None: card_dict["OutputSnapshotsBase"] = main_dict["resultdir"]+"particles_"+main_dict["simname"] if card_dict["OutputFinalSnapshot"] is None: - card_dict["OutputFinalSnapshot"] = main_dict["resultdir"]+ligthcone_prefix+"final_particles_"+main_dict["simname"]+".gadget3" + card_dict["OutputFinalSnapshot"] = main_dict["resultdir"]+ligthcone_prefix+"final_particles_"+main_dict["simname"]+("_lc" if card_dict["GenerateLightcone"] else "")+".gadget3" if card_dict["OutputFinalDensity"] is None: - card_dict["OutputFinalDensity"] = main_dict["resultdir"]+ligthcone_prefix+"final_density_"+main_dict["simname"]+".h5" + card_dict["OutputFinalDensity"] = main_dict["resultdir"]+ligthcone_prefix+"final_density_"+main_dict["simname"]+("_lc" if card_dict["GenerateLightcone"] else "")+".h5" if card_dict["OutputTilesBase"] is None: card_dict["OutputTilesBase"] = main_dict["workdir"]+main_dict["simname"]+"_tile" if card_dict["OutputLPTPotential1"] is None: