fbartolic / caustics

Differentiable microlensing powered by JAX
https://fbartolic.github.io/caustics/
MIT License
13 stars 2 forks source link

Implement "ghost image" test from Bozza et.al. 2017 #7

Closed fbartolic closed 2 years ago

fbartolic commented 2 years ago

The quadrupole and hexadecapole corrections to the point source magnifications are insignificant when approach a fold from the the outside of a caustic. Bozza et.al. 2018 devised a test (Eq. 47 in the paper) to catch when the source is close to a fold and trigger the full calculation at those points. I've implemented this test but the output looks like this:

image

No idea what these weird curves emerging out of the fold near the top are. Could be a mistake in my implementation.

fbartolic commented 2 years ago

Fixed, see _extended_source_test for the working implementation.