The default behavior for adding and solving with noisemodels has changed from Pastas 1.5. Find more information here


EmceeSolve.set_parameter(name, initial=None, vary=None, pmin=None, pmax=None, optimal=None, dist=None)[source]#

Method to change the parameter properties.

  • name (str) – name of the parameter to update. This has to be a single variable.

  • initial (float, optional) – parameters value to use as initial estimate.

  • vary (bool, optional) – boolean to vary a parameter (True) or not (False).

  • pmin (float, optional) – minimum value for the parameter.

  • pmax (float, optional) – maximum value for the parameter.

  • optimal (float, optional) – optimal value for the parameter.

  • dist (str, optional) – Distribution of the parameters. Must be a scipy.stats distribution.

Return type



>>> s = ps.EmceeSolve()
>>> s.set_parameter(name="ln_sigma", initial=0.1, vary=True, pmin=0.01, pmax=1)


It is highly recommended to use this method to set parameter properties. Changing the parameter properties directly in the parameter DataFrame may not work as expected.