From c383213f122559676c5f1bdf2a4b475d771a1160 Mon Sep 17 00:00:00 2001 From: Katherine Mantel Date: Tue, 19 Nov 2024 04:42:06 +0000 Subject: [PATCH] Parameter: call validation in .set --- psyneulink/core/globals/parameters.py | 1 + 1 file changed, 1 insertion(+) diff --git a/psyneulink/core/globals/parameters.py b/psyneulink/core/globals/parameters.py index f79ce831aa..6ddfbcfedd 100644 --- a/psyneulink/core/globals/parameters.py +++ b/psyneulink/core/globals/parameters.py @@ -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: