Skip to content

Commit

Permalink
v2.13 - correcting bug in MagnificationCurve
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoleski committed Oct 26, 2022
1 parent d7f3c69 commit 928de19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions source/MulensModel/magnificationcurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class MagnificationCurve(object):
def __init__(self, times, parameters, parallax=None,
coords=None, satellite_skycoord=None, gamma=0.):
# Set times
self.times = np.asarray(times)
self.times = np.atleast_1d(times)

# Check for ModelParameters and set.
if isinstance(parameters, ModelParameters):
Expand Down Expand Up @@ -255,13 +255,14 @@ def get_point_lens_magnification(self):
" lenses")

pspl_magnification = get_pspl_magnification(self.trajectory)
if self._methods_epochs is None:
methods = np.array(self._methods_for_epochs())
if np.all(methods == None):
return pspl_magnification

point_lens = PointLens(self.parameters)
magnification = pspl_magnification
u2 = self.trajectory.x**2 + self.trajectory.y**2
u_all = np.sqrt(u2)
methods = np.array(self._methods_for_epochs())

for method in set(methods):
kwargs = {}
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.12.0"
__version__ = "2.13.0"

0 comments on commit 928de19

Please sign in to comment.