Skip to content

Commit

Permalink
simplifying pointlens.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoleski committed Jun 13, 2022
1 parent 9ddc827 commit 4c97c22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions source/MulensModel/pointlens.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,9 @@ def get_point_lens_LD_integrated_magnification(self, u, rho, gamma):
def _LD_Lee09(self, u, rho, gamma, n_theta, n_u):
"""
Calculates Equation 13 from Lee et al. 2009.
Accuracy of these calculations is on the order of 1e-4
"""
accuracy = 1e-4
theta_sub = 1.e-12
u_1_min = 1.e-13

Expand Down Expand Up @@ -651,9 +652,6 @@ def _get_magnification_WM94_B18(self, u, gamma, n_annuli):
Witt & Mao 1994 approach and equations 16-19 from Bozza et al. 2018.
"""
n_annuli += 1 # It's easier to have r=0 ring as well.

pspl_magnification = get_pspl_magnification(u)

annuli = np.linspace(0, 1., n_annuli)
r2 = annuli**2

Expand Down
2 changes: 1 addition & 1 deletion source/MulensModel/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.9.3"
__version__ = "2.9.4"

0 comments on commit 4c97c22

Please sign in to comment.