Skip to content

Commit fc7e38e

Browse files
committed
Fixed incorrect LSF width used in convolution
1 parent e67b18c commit fc7e38e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/fast++-fitter.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,6 @@ void fitter_t::fit_galaxies(const model_t& model, uint_t i0, uint_t i1) {
544544

545545
wsp.wflux[iw] = input.flux.safe(is,il)*wsp.weight[iw];
546546
wsp.wmodel[iw] = model.flux.safe[il]*wsp.weight[iw];
547-
548547
};
549548

550549
for (uint_t iw : range(iflx, nscale)) {

src/fast++-read_input.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,7 @@ bool read_lsf_spec(const options_t& opts, input_state_t& state) {
18161816
vec1d l = rgen(l0-dll/2, l0+dll/2, npt);
18171817

18181818
f.wl = l;
1819-
f.tr = 0.5*(erf((l0+dl/2-l)/(sqrt(2)*s)) - erf((l0-dl/2-l)/(sqrt(2)*s)));
1819+
f.tr = 0.5*(erf((l0+dl/2-l)/(sqrt(2)*lsf)) - erf((l0-dl/2-l)/(sqrt(2)*lsf)));
18201820

18211821
double ttot = integrate(f.wl, f.tr);
18221822
if (!is_finite(ttot) || ttot == 0) {

0 commit comments

Comments
 (0)