Skip to content

Commit 0e1f527

Browse files
committed
Not fitting at zphot if outside of confidence interval and BEST_AT_ZPHOT is not set
1 parent 615a6c1 commit 0e1f527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fast++-fitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ void fitter_t::fit_galaxies(const model_t& model, uint_t i0, uint_t i1) {
281281
uint_t is = i + i0;
282282

283283
// Apply constraints on redshift
284-
if ((idzp.safe[is] == npos || model.iz != idzp.safe[is]) &&
284+
if ((!opts.best_at_zphot || idzp.safe[is] == npos || model.iz != idzp.safe[is]) &&
285285
(idz.safe[is] == npos || model.iz != idz.safe[is]) &&
286286
(model.iz < idzl.safe[is] || model.iz > idzu.safe[is])) {
287287
wsp.chi2.safe[i] = finf;

0 commit comments

Comments
 (0)