Check if the par is frozen inside parameter.check_limits()
@@ -138,7 +138,6 @@ class Parameter:
@factor.setter
def factor(self, val):
self._factor = float(val)
- if self.frozen is False:
self.check_limits()
@property
@@ -226,6 +225,7 @@ class Parameter:
def check_limits(self, strict=False):
"""Emit a warning or error if value is outside the min/max range"""
+ if self.frozen is False:
if (~np.isnan(self.min) and (self.value <= self.min)) or (
~np.isnan(self.max) and (self.value >= self.max)
):
