Skip to content

Commit

Permalink
More changes to ensure intermediate files are present for all notebooks
Browse files Browse the repository at this point in the history
Essentially all prior steps must be run in every notebook
  • Loading branch information
Raphael Shirley committed Apr 5, 2024
1 parent 596ede1 commit b5729b3
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions docs/notebooks/Testing_fit_of_one_object_of_the_catalogue.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b5729b3

Please sign in to comment.