Skip to content

Commit 0edbaaf

Browse files
committed
Fixed erroneous error message when a galaxy has a zspec incompatible with photo-z interval
1 parent 91a992b commit 0edbaaf

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
@@ -69,7 +69,7 @@ fitter_t::fitter_t(const options_t& opt, const input_state_t& inp, const gridder
6969
idzu.safe[is] = min_id(abs(output.z - input.zphot.safe(is,iup)));
7070

7171
// Check that zphot falls inside confidence interval
72-
if (opts.best_at_zphot && idzp.safe[is] != npos &&
72+
if (opts.best_at_zphot && idzp.safe[is] != npos && idz.safe[is] == npos &&
7373
(idzp.safe[is] < idzl.safe[is] || idzp.safe[is] > idzu.safe[is])) {
7474
warning("for galaxy ", input.id.safe[is], " the photo-z (",
7575
input.zphot.safe(is,0), ") falls outside of the chosen confidence "

0 commit comments

Comments
 (0)