Skip to content

Commit

Permalink
Updated error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferyee committed Dec 29, 2023
1 parent 6b9a9c6 commit 77fd6d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/MulensModel/modelparameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ def __init__(self, parameters):
# The block above forces checks from "== 1" block above to be
# run on each source parameters separately.
else:
raise ValueError('wrong number of sources')
raise ValueError(
'wrong number of sources. Your parameters:', parameters)

self._set_parameters(parameters)

def _count_sources(self, keys):
Expand Down

0 comments on commit 77fd6d1

Please sign in to comment.