GalSim-developers / GalSim

The modular galaxy image simulation toolkit. Documentation:
http://galsim-developers.github.io/GalSim/
Other
228 stars 107 forks source link

Fix SingularMatrix problem in LM algorithm #1319

Open rmjarvis opened 1 week ago

rmjarvis commented 1 week ago

imsim unit tests are failing with galsim 2.6 because of the new hand-rolled LM solver. The problem is that some iterations can end up with a singular matrix. My solution here is to catch that exception and roll back lambda a bit. This seems to work.