Commit e3b312fc authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Select only valid models when plotting the PDF.

parent 55493a4a
......@@ -7,6 +7,7 @@
- The best fit could not be computed in photo-z mode because the redshift was negative. (Médéric Boquien)
- The bayesian estimates could not be computed when some models were older than the age of the universe. (Médéric Boquien)
- The usage of `dustatt\_cazleit` causes some confusion regarding the reddening of the stars and of the gas. We have clarified that they are both attenuated with the same law and switched the differential reddening to 1 by default. (Médéric Boquien & Véronique Buat)
- When some models were invalid, it was not possible to plot the PDF. (Médéric Boquien & Denis Burgarella)
### Optimised
......@@ -93,8 +93,8 @@ def _pdf_worker(obj_name, var_name):
model_variable = np.concatenate(model_variable)
Npdf = 100
min_hist = np.min(model_variable)
max_hist = np.max(model_variable)
min_hist = np.nanmin(model_variable)
max_hist = np.nanmax(model_variable)
Nhist = min(Npdf, len(np.unique(model_variable)))
if min_hist == max_hist:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment