From d5dd7a029bdd4e4b9b5d1ce20a3f51327acdecf9 Mon Sep 17 00:00:00 2001 From: Raphael Shirley Date: Sun, 19 Oct 2025 19:26:30 +0200 Subject: [PATCH 1/7] Increase speed of runs --- src/rail/estimation/algos/lephare.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rail/estimation/algos/lephare.py b/src/rail/estimation/algos/lephare.py index f8226ef..4d33edc 100644 --- a/src/rail/estimation/algos/lephare.py +++ b/src/rail/estimation/algos/lephare.py @@ -31,6 +31,7 @@ "STAR_LIB_IN": "LSST_STAR_BIN", "STAR_LIB_OUT": "LSST_STAR_MAG", "ZPHOTLIB": "LSST_STAR_MAG,LSST_GAL_MAG,LSST_QSO_MAG", + "Z_STEP": "0.02,0.,6.", } ) @@ -70,7 +71,8 @@ class LephareInformer(CatInformer): MOD_EXTINC="18,26,26,33,26,33,26,33", EXTINC_LAW="SMC_prevot.dat,SB_calzetti.dat,SB_calzetti_bump1.dat,SB_calzetti_bump2.dat", EM_LINES="EMP_UV", - EM_DISPERSION="0.5,0.75,1.,1.5,2.", + EM_DISPERSION="1.", + MAG_ABS_QSO="-30,-20.5", ), msg="Galaxy config overrides.", ), From 073cdc2e99edb1d82846d670b8c0e9492d2fed63 Mon Sep 17 00:00:00 2001 From: Raphael Shirley Date: Sun, 19 Oct 2025 20:52:22 +0200 Subject: [PATCH 2/7] Add EM_LINES parameter to QSO config --- src/rail/estimation/algos/lephare.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rail/estimation/algos/lephare.py b/src/rail/estimation/algos/lephare.py index 4d33edc..da054ab 100644 --- a/src/rail/estimation/algos/lephare.py +++ b/src/rail/estimation/algos/lephare.py @@ -83,6 +83,7 @@ class LephareInformer(CatInformer): MOD_EXTINC="0,1000", EB_V="0.,0.1,0.2,0.3", EXTINC_LAW="SB_calzetti.dat", + EM_LINES="NO", ), msg="QSO config overrides.", ), From 1df66bdf711da8ad8f98524d542d58e65622b392 Mon Sep 17 00:00:00 2001 From: Raphael Shirley Date: Sun, 19 Oct 2025 21:14:51 +0200 Subject: [PATCH 3/7] Add MAG_ABS_QSO and MOD_EXTINC to lephare config --- src/rail/estimation/algos/lephare.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/rail/estimation/algos/lephare.py b/src/rail/estimation/algos/lephare.py index da054ab..0040b3c 100644 --- a/src/rail/estimation/algos/lephare.py +++ b/src/rail/estimation/algos/lephare.py @@ -24,6 +24,7 @@ "INP_TYPE": "M", "MABS_CONTEXT": "63", "MABS_REF": "1", + "MAG_ABS_QSO": "-30,-20.5", "QSO_LIB": "LSST_QSO_BIN", "QSO_LIB_IN": "LSST_QSO_BIN", "QSO_LIB_OUT": "LSST_QSO_MAG", @@ -61,7 +62,10 @@ class LephareInformer(CatInformer): ), star_config=Param( dict, - dict(LIB_ASCII="YES"), + dict( + LIB_ASCII="YES", + MOD_EXTINC="0,0", + ), msg="Star config overrides.", ), gal_config=Param( @@ -72,7 +76,6 @@ class LephareInformer(CatInformer): EXTINC_LAW="SMC_prevot.dat,SB_calzetti.dat,SB_calzetti_bump1.dat,SB_calzetti_bump2.dat", EM_LINES="EMP_UV", EM_DISPERSION="1.", - MAG_ABS_QSO="-30,-20.5", ), msg="Galaxy config overrides.", ), From a1c52b4d5d17ae892481b644f57806793eebc2ee Mon Sep 17 00:00:00 2001 From: Raphael Shirley Date: Tue, 4 Nov 2025 14:05:13 +0100 Subject: [PATCH 4/7] Add EM_DISPERSION to lsst_default_config Setting EE_DISPERSION in main config to 1 in case they are switched on for QSO --- src/rail/estimation/algos/lephare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rail/estimation/algos/lephare.py b/src/rail/estimation/algos/lephare.py index 0040b3c..7077295 100644 --- a/src/rail/estimation/algos/lephare.py +++ b/src/rail/estimation/algos/lephare.py @@ -13,6 +13,7 @@ lsst_default_config.update( { "CAT_IN": "undefined", + "EM_DISPERSION": "1.", "ERR_SCALE": "0.02,0.02,0.02,0.02,0.02,0.02", "FILTER_CALIB": "0,0,0,0,0,0", "FILTER_FILE": "filter_lsst", @@ -75,7 +76,6 @@ class LephareInformer(CatInformer): MOD_EXTINC="18,26,26,33,26,33,26,33", EXTINC_LAW="SMC_prevot.dat,SB_calzetti.dat,SB_calzetti_bump1.dat,SB_calzetti_bump2.dat", EM_LINES="EMP_UV", - EM_DISPERSION="1.", ), msg="Galaxy config overrides.", ), From 3f1eb06a6ae41f10913284f64f245cae3e44466d Mon Sep 17 00:00:00 2001 From: Raphael Shirley Date: Fri, 12 Dec 2025 14:26:34 +0100 Subject: [PATCH 5/7] Update LSST configuration in lephare.py Added physical configuration settings for LSST in Lephare. --- src/rail/estimation/algos/lephare.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/rail/estimation/algos/lephare.py b/src/rail/estimation/algos/lephare.py index 7077295..d8fd534 100644 --- a/src/rail/estimation/algos/lephare.py +++ b/src/rail/estimation/algos/lephare.py @@ -12,6 +12,7 @@ lsst_default_config = lp.default_cosmos_config.copy() lsst_default_config.update( { + "VERBOSE": "NO", "CAT_IN": "undefined", "EM_DISPERSION": "1.", "ERR_SCALE": "0.02,0.02,0.02,0.02,0.02,0.02", @@ -37,6 +38,31 @@ } ) +lsst_phys_config = lsst_default_config.copy() + +lsst_phys_config.update( + { + # In order to get the physical parameters you need to use + # Composite Stellar Population synthesis models. Here Bruzual & Charlot (2003). + # This can be done only for galaxies. + "GAL_SED": "$LEPHAREDIR/sed/GAL/BC03_CHAB/BC03COMB_MOD.list", + "GAL_LIB": "LIB_BC03", + "SEL_AGE": "$LEPHAREDIR/sed/GAL/BC03_CHAB/AGE_BC03COMB.dat", + # Library + "GAL_LIB_IN":"LIB_BC03", + "GAL_LIB_OUT":"BC03_LSST", + "MOD_EXTINC": "0,12,0,12", + "EXTINC_LAW": "SB_calzetti.dat,SMC_prevot.dat", + "EM_LINES": "PHYS", + "EM_DISPERSION": "1.", + # FIT + # We set the redshift to the spec-z value + "ZPHOTLIB":"BC03_LSST", + "ZFIX": "YES", + "SPEC_OUT": "spec_phys", # We would like to see the output + } +) + class LephareInformer(CatInformer): """Inform stage for LephareEstimator From b749d74c257b998a3e26a6f45c928f9276119014 Mon Sep 17 00:00:00 2001 From: Raphael Shirley Date: Tue, 17 Mar 2026 15:08:08 +0100 Subject: [PATCH 6/7] Change EXTINC_LAW from SB_calzetti.dat to SMC_prevot.dat --- src/rail/estimation/algos/lephare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rail/estimation/algos/lephare.py b/src/rail/estimation/algos/lephare.py index d8fd534..d6dcdf6 100644 --- a/src/rail/estimation/algos/lephare.py +++ b/src/rail/estimation/algos/lephare.py @@ -111,7 +111,7 @@ class LephareInformer(CatInformer): LIB_ASCII="YES", MOD_EXTINC="0,1000", EB_V="0.,0.1,0.2,0.3", - EXTINC_LAW="SB_calzetti.dat", + EXTINC_LAW="SMC_prevot.dat", EM_LINES="NO", ), msg="QSO config overrides.", From c8515c513cde1eb1d4930d9e49f361d4182559a6 Mon Sep 17 00:00:00 2001 From: Raphael Shirley Date: Fri, 22 May 2026 18:34:07 +0200 Subject: [PATCH 7/7] Add MAG_REF parameter to lephare.py configuration Use g band for abs mag prior --- src/rail/estimation/algos/lephare.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rail/estimation/algos/lephare.py b/src/rail/estimation/algos/lephare.py index d6dcdf6..565ee54 100644 --- a/src/rail/estimation/algos/lephare.py +++ b/src/rail/estimation/algos/lephare.py @@ -26,6 +26,7 @@ "INP_TYPE": "M", "MABS_CONTEXT": "63", "MABS_REF": "1", + "MAG_REF": "2", "MAG_ABS_QSO": "-30,-20.5", "QSO_LIB": "LSST_QSO_BIN", "QSO_LIB_IN": "LSST_QSO_BIN",