glenco / SLsimLib

Library for Gravitational Lensing Simulations
MIT License
2 stars 1 forks source link

Exceptions with FindLensSimple #96

Closed FabienNugier closed 8 years ago

FabienNugier commented 8 years ago

I am having a little trouble when trying to fit a real case lens with FindLensSimple. Indeed, with the particular values that I am entering the fit sends me an exception which was encoded by myself in minEllip. This exception is necessary as well as the one implemented in ElliptisizeLens in order to do the fitting of the HaloFit in many random conditions (and to avoid going out of loops each time a strange case occurs and cannot be fitted). How can I keep this exception and still fit the HaloFit with these given positions ? It could be also that this exception is excluding a lot of cases when we are in the presence of substructure using Meth1 (i.e. moving image positions), hence decreasing our statistics.

rbmetcalf commented 8 years ago

I think your centering the lens on one of the images and not on the center of the observed lens galaxy.

FabienNugier commented 8 years ago

Yes indeed, it is solved now.