|
54 | 54 | "source": [ |
55 | 55 | "lephare_config = lp.default_cosmos_config\n", |
56 | 56 | "# For useable science results you must use a denser redshift grid by commenting out the following line which will revert to the config dz of 0.01.\n", |
57 | | - "lephare_config['Z_STEP']= \".1,0.,7.\"\n", |
| 57 | + "lephare_config['Z_STEP']= \"0.1,0.,7.\"\n", |
58 | 58 | "nobj=100 # Increase to run on more objects. Set to -1 to run on all.\n", |
59 | 59 | "\n", |
60 | 60 | "lp.data_retrieval.get_auxiliary_data(keymap=lephare_config, additional_files=[\"examples/COSMOS.in\",\"examples/output.para\"])" |
|
130 | 130 | " nondetect_val=np.nan,\n", |
131 | 131 | " model=\"lephare.pkl\",\n", |
132 | 132 | " hdf5_groupname=\"\",\n", |
133 | | - " lephare_config=lephare_config,\n", |
| 133 | + " **{f\"lephare.{k}\": v for k, v in lephare_config.items()},\n", |
134 | 134 | " bands=flux_cols,\n", |
135 | 135 | " err_bands=flux_err_cols,\n", |
136 | 136 | " ref_band=flux_cols[0],\n", |
137 | 137 | " do_prepare = True,\n", |
| 138 | + "\n", |
| 139 | + " # These overwrite the config ZSTEP so must be set\n", |
| 140 | + " zmin=float(lephare_config['Z_STEP'].split(',')[1]),\n", |
| 141 | + " zmax=float(lephare_config['Z_STEP'].split(',')[2]),\n", |
| 142 | + " nzbins=1+float(lephare_config['Z_STEP'].split(',')[2])/float(lephare_config['Z_STEP'].split(',')[0]),\n", |
138 | 143 | ")\n", |
139 | 144 | "\n" |
140 | 145 | ] |
|
282 | 287 | ], |
283 | 288 | "metadata": { |
284 | 289 | "kernelspec": { |
285 | | - "display_name": "rail", |
| 290 | + "display_name": "Python 3 (ipykernel)", |
286 | 291 | "language": "python", |
287 | 292 | "name": "python3" |
288 | 293 | }, |
|
296 | 301 | "name": "python", |
297 | 302 | "nbconvert_exporter": "python", |
298 | 303 | "pygments_lexer": "ipython3", |
299 | | - "version": "3.13.2" |
| 304 | + "version": "3.10.18" |
300 | 305 | } |
301 | 306 | }, |
302 | 307 | "nbformat": 4, |
|
0 commit comments