From b5729b35bf88d3a609c67adfc44aa76678cf5875 Mon Sep 17 00:00:00 2001 From: Raphael Shirley Date: Sat, 6 Apr 2024 01:30:50 +0200 Subject: [PATCH] More changes to ensure intermediate files are present for all notebooks Essentially all prior steps must be run in every notebook --- ...g_fit_of_one_object_of_the_catalogue.ipynb | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/docs/notebooks/Testing_fit_of_one_object_of_the_catalogue.ipynb b/docs/notebooks/Testing_fit_of_one_object_of_the_catalogue.ipynb index af0ab372..c33b426e 100644 --- a/docs/notebooks/Testing_fit_of_one_object_of_the_catalogue.ipynb +++ b/docs/notebooks/Testing_fit_of_one_object_of_the_catalogue.ipynb @@ -56,6 +56,42 @@ "keymap[\"ZFIX\"] = lp.keyword(\"ZFIX\", \"YES\")" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "a6e5c4fc-d37a-4e5c-8882-a6b7ce168efd", + "metadata": {}, + "outputs": [], + "source": [ + "#before running PhotoZ we must run filt, sedtolib and maggal\n", + "filterLib = lp.Filter(config_file=config_file)\n", + "filterLib.run()\n", + "sedlib = lp.Sedtolib(config_keymap=keymap)\n", + "sedlib.run(typ=\"STAR\", star_sed=\"$LEPHAREDIR/sed/STAR/STAR_MOD_ALL.list\")\n", + "sedlib.run(typ=\"QSO\", qso_sed=\"$LEPHAREDIR/sed/QSO/SALVATO09/AGN_MOD.list\", gal_lib=\"LIB_QSO\")\n", + "sedlib.run(typ=\"GAL\", gal_sed=\"$LEPHAREDIR/examples/COSMOS_MOD.list\", gal_lib=\"LIB_GAL\")\n", + "maglib = lp.MagGal(config_keymap=keymap)\n", + "maglib.run(typ=\"STAR\", lib_ascii=\"YES\", star_lib_out=\"ALLSTAR_COSMOS\")\n", + "maglib.run(\n", + " typ=\"QSO\",\n", + " lib_ascii=\"YES\",\n", + " mod_extinc=\"0,1000\",\n", + " eb_v=\"0.,0.1,0.2,0.3\",\n", + " extinc_law=\"SB_calzetti.dat\",\n", + " qso_lib_in=\"LIB_QSO\",\n", + ")\n", + "maglib.run(\n", + " typ=\"GAL\",\n", + " lib_ascii=\"YES\",\n", + " gal_lib_in=\"LIB_GAL\",\n", + " gal_lib_out=\"VISTA_COSMOS_FREE\",\n", + " mod_extinc=\"18,26,26,33,26,33,26,33\",\n", + " extinc_law=\"SMC_prevot.dat,SB_calzetti.dat,SB_calzetti_bump1.dat,SB_calzetti_bump2.dat\",\n", + " em_lines=\"EMP_UV\",\n", + " em_dispersion=\"0.5,0.75,1.,1.5,2.\",\n", + ")" + ] + }, { "cell_type": "code", "execution_count": null,