Skip to content

Commit e7d4d88

Browse files
committed
Fixed incorrect z interval with BEST_AT_ZPHOT and sims
1 parent 0edbaaf commit e7d4d88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/fast++-fitter.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@ void fitter_t::fit_galaxies(const model_t& model, uint_t i0, uint_t i1) {
293293
dofit = true;
294294
keepfit = true;
295295
} else {
296-
dofit = opts.n_sim != 0;
296+
if (opts.n_sim == 0) {
297+
dofit = false;
298+
}
297299
keepfit = false;
298300
}
299301
}

0 commit comments

Comments
 (0)