pymodeler/model.py
def setp(self, name, clear_derived=True, value=None,
             bounds=None, free=None, errors=None):
        """
        Set the value (and bounds) of the named parameter.

        Parameters
        ----------

        name : str
            The parameter name.
        clear_derived : bool
            Flag to clear derived objects in this model
        value:
            The value of the parameter, if None, it is not changed
        bounds: tuple or None
            The bounds on the parameter, if None, they are not set
        free : bool or None
            Flag to say if parameter is fixed or free in fitting, if None, it is not changed
        errors : tuple or None
            Uncertainties on the parameter, if None, they are not changed

        """
        name = self._mapping.get(name, name)
        try:
            self.params[name].set(
                value=value,
                bounds=bounds,
                free=free,
                errors=errors)
        except TypeError as msg:
            print(msg, name)

        if clear_derived:
            self.clear_derived()
        self._cache(name)
def setp(self, name, clear_derived=True, value=None,
             bounds=None, free=None, errors=None):
        """
        Set the value (and bounds) of the named parameter.

        Parameters
        ----------

        name : str
            The parameter name.
        clear_derived : bool
            Flag to clear derived objects in this model
        value:
            The value of the parameter, if None, it is not changed
        bounds: tuple or None
            The bounds on the parameter, if None, they are not set
        free : bool or None
            Flag to say if parameter is fixed or free in fitting, if None, it is not changed
        errors : tuple or None
            Uncertainties on the parameter, if None, they are not changed

        """
        name = self._mapping.get(name, name)
        try:
            self.params[name].set(
                value=value,
                bounds=bounds,
                free=free,
                errors=errors)
        except TypeError as msg:
            print(msg, name)

        if clear_derived:
            self.clear_derived()
        self._cache(name)
Set the value (and bounds) of the named parameter.

        Parameters
        ----------

        name : str
            The parameter name.
        clear_derived : bool
            Flag to clear derived objects in this model
        value:
            The value of the parameter, if None, it is not changed
        bounds: tuple or None
            The bounds on the parameter, if None, they are not set
        free : bool or None
            Flag to say if parameter is fixed or free in fitting, if None, it is not changed
        errors : tuple or None
            Uncertainties on the parameter, if None, they are not changed