Skip to content

Commit

Permalink
don't pass freqs for null subbands into modelfit
Browse files Browse the repository at this point in the history
  • Loading branch information
landmanbester committed Apr 12, 2024
1 parent 62c3455 commit 74fc389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pfb/workers/spotless.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def _spotless(ddsi=None, **kw):
f"{basename}_{opts.postfix}_model_{k+1}.mds", file=log)
try:
coeffs, Ix, Iy, expr, params, texpr, fexpr = \
fit_image_cube(time_out, freq_out, model[None, fsel, :, :],
fit_image_cube(time_out, freq_out[fsel], model[None, fsel, :, :],
wgt=wsums[None, fsel],
nbasisf=int(np.sum(fsel)),
method='Legendre')
Expand Down

0 comments on commit 74fc389

Please sign in to comment.