Skip to content

Commit

Permalink
Parameter: call validation in .set
Browse files Browse the repository at this point in the history
  • Loading branch information
kmantel committed Dec 19, 2024
1 parent 14722f7 commit c383213
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions psyneulink/core/globals/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1505,6 +1505,7 @@ def set(self, value, context=None, override=False, skip_history=False, skip_log=
raise ParameterError('Parameter \'{0}\' is read-only. Set at your own risk. Pass override=True to force set.'.format(self.name))

value = self._parse(value, check_scalar=True)
self._validate(value)
value = self._set(value, context, skip_history, skip_log, **kwargs)

try:
Expand Down

0 comments on commit c383213

Please sign in to comment.