Skip to content

Commit cb09a2b

Browse files
committed
Clarified consequence of zphot outside of confidence intervals
1 parent 7825b63 commit cb09a2b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/fast++-fitter.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ fitter_t::fitter_t(const options_t& opt, const input_state_t& inp, const gridder
6464
uint_t ilow = 1 + 2*ic + 0;
6565
uint_t iup = 1 + 2*ic + 1;
6666

67+
bool error_shown = false;
68+
6769
for (uint_t is : range(input.id)) {
6870
if (is_finite(input.zphot.safe(is,ilow)) && is_finite(input.zphot.safe(is,iup))) {
6971
// Get range from zlow and zup
@@ -77,9 +79,15 @@ fitter_t::fitter_t(const options_t& opt, const input_state_t& inp, const gridder
7779
input.zphot.safe(is,0), ") falls outside of the chosen confidence "
7880
"interval (", input.zphot.safe(is,ilow), " to ", input.zphot.safe(is,iup),
7981
")");
82+
error_shown = true;
8083
}
8184
}
8285
}
86+
87+
if (error_shown) {
88+
warning("for these galaxies, the confidence intervals may not be consistent with "
89+
"the best fit values");
90+
}
8391
}
8492

8593
for (uint_t is : range(input.id)) {

0 commit comments

Comments
 (0)