Skip to content

Commit

Permalink
meaningful error message for problems with binary lens method
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoleski committed Oct 5, 2023
1 parent 179ceef commit 90c18c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions source/MulensModel/magnificationcurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,9 @@ def _get_binary_lens_magnification(self, binary_lens_class,

magnification = []
for index in range(len(self.times)):
if methods[index] is None:
raise ValueError("method for calculating binary lens "
"magnification is not specified properly")
x = self.trajectory.x[index]
y = self.trajectory.y[index]
method = methods[index].lower()
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.18.1"
__version__ = "2.18.2"

0 comments on commit 90c18c5

Please sign in to comment.