AdvancedPhotonSource / tike

Repository for ptychography software
http://tike.readthedocs.io
Other
29 stars 15 forks source link

Bug in Least Square Gradient. #334

Open taylorbuckway opened 1 month ago

taylorbuckway commented 1 month ago

When using the Lstsq_grad algorithm, the algorithm fails when the probe update is set to values greater than zero. Is this intentional? In lstsq_grad.py on line 548, it calls for bpatches which was set to None on line 543 because the recover probe is set to False for the iterations before the probe update start on line 84.