Skip to content

Commit

Permalink
Update condition.py error message (#214)
Browse files Browse the repository at this point in the history
* minor update in the ValueError message
  • Loading branch information
dario-coscia authored Nov 22, 2023
1 parent 9e87d61 commit 6c46642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pina/condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(self, *args, **kwargs):

if len(args) != 0:
raise ValueError(
'Condition takes only the following keyword arguments: {`input_points`, `output_points`, `location`, `function`, `data_weight`}.'
f'Condition takes only the following keyword arguments: {Condition.__slots__}.'
)

if (sorted(kwargs.keys()) != sorted(['input_points', 'output_points'])
Expand Down

0 comments on commit 6c46642

Please sign in to comment.