lephare-photoz / lephare

LePHARE is a code for calculating photometric redshifts.
MIT License
5 stars 1 forks source link

Allow process to output AGN pdz distributions #229

Closed raphaelshirley closed 1 week ago

raphaelshirley commented 2 weeks ago

lephare.process currently returns the galaxy redshift posterior. We should allow it to output AGN posteriors too or take an argument to specify which distribution is output.

Before submitting Please check the following:

raphaelshirley commented 2 weeks ago

Perhaps an optional argument here:

https://github.com/lephare-photoz/lephare/blob/055b330139f282a14aef71584ee33e81faa68397/src/lephare/process.py#L88

which provides a list of which pdf to return.

raphaelshirley commented 1 week ago

We should also have an option to write outputs:

photz.write_outputs

We should do this with an optional flag write_outputs=False so one can choose whether to or not.

This will write spectra, the ascii file, and the pdf if defined in the config.