You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INFO 14:55:05 - SPOTLESS | Combining slices into cubes
INFO 14:57:01 - SPOTLESS | Finding spectral norm of Hessian approximation
INFO 15:02:47 - PM | Success, converged after 29 iterations. beta = 2.001e+01
INFO 15:02:47 - SPOTLESS | Setting up dictionary
Traceback (most recent call last):
File "/home/ianh/venv/pfb/bin/pfb", line 33, in <module>
sys.exit(load_entry_point('pfb-clean', 'console_scripts', 'pfb')())
File "/home/ianh/venv/pfb/lib/python3.9/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/home/ianh/venv/pfb/lib/python3.9/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/ianh/venv/pfb/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ianh/venv/pfb/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ianh/venv/pfb/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/ianh/Software/pfb-clean/pfb/workers/spotless.py", line 54, in spotless
return _spotless(**opts)
File "/home/ianh/Software/pfb-clean/pfb/workers/spotless.py", line 217, in _spotless
GaussPar = fitcleanbeam(psf_mfs[None], level=0.5, pixsize=1.0)[0]
File "/home/ianh/Software/pfb-clean/pfb/utils/misc.py", line 566, in fitcleanbeam
p, _ = curve_fit(func, xy, psfv, p0=(emaj0, emin0, 0.0),
File "/home/ianh/venv/pfb/lib/python3.9/site-packages/scipy/optimize/_minpack_py.py", line 982, in curve_fit
raise RuntimeError("Optimal parameters not found: " + errmsg)
RuntimeError: Optimal parameters not found: Number of calls to function has reached maxfev = 2000.
The text was updated successfully, but these errors were encountered:
Thanks for reporting @IanHeywood. This is an issue with the PSF fitting, it seems to need more than the default of 2000 iterations. Note to self - pass in the gradient!
Alright, I've switched from curve_fit to using fmin_l_bfgs_b with a value_and_grad from jax so this shouldn't happen anymore. Please test again and report here if the error persists
Modified grid step and resuming spotless following the fringe explosion as advised:
Spotless doesn't get off the ground:
The text was updated successfully, but these errors were encountered: