gammapy/modeling/parameter.py
def check_limits(self):
        """Emit a warning or error if value is outside the min/max range"""
        if not self.frozen:
            if (~np.isnan(self.min) and (self.value <= self.min)) or (
                ~np.isnan(self.max) and (self.value >= self.max)
            ):
                log.warning(
                    f"Value {self.value} is outside bounds [{self.min}, {self.max}] for parameter '{self.name}'"
                )
Emit a warning or error if value is outside the min/max range
Emit a warning or error if value is outside the min/max range
Emit a warning or error if value is outside the min / max range
def check_limits(self):
        if not self.frozen:
            if (~np.isnan(self.min) and (self.value <= self.min)) or (
                ~np.isnan(self.max) and (self.value >= self.max)
            ):
                log.warning(
                    f"Value {self.value} is outside bounds [{self.min}, {self.max}] for parameter '{self.name}'"
                )
def check_limits ( self ) : if not self . frozen : if ( ~ np . isnan ( self . min ) and ( self . value <= self . min ) ) or ( ~ np . isnan ( self . max ) and ( self . value >= self . max ) ) : log . warning ( f"Value {self.value} is outside bounds [{self.min}, {self.max}] for parameter '{self.name}'" )
Emit a warning or error if value is outside the min/max range
Emit a warning or error if value is outside the min / max range
"""Emit a warning or error if value is outside the min/max range"""
self