bec_lib.dap_plugin_objects.LmfitService1D#

class LmfitService1D(service_name: str, plugin_info: dict, client: BECClient = None, auto_run_supported: bool = False, service_info: dict = None)[source]#

Bases: DAPPluginObjectAutoRun

Plugin for fitting 1D data using lmfit.

Parameters:
  • service_name (str) – The name of the service.

  • plugin_info (dict) – Information about the plugin.

  • client (BECClient, optional) – The BEC client. Defaults to None.

  • auto_run_supported (bool, optional) – Whether the plugin supports auto run. Defaults to False.

  • service_info (dict, optional) – Information about the service. Defaults to None.

  • result_cls (type, optional) – The class to use for the result of the plugin. Defaults to None.

Methods

get_data

Get the data from last run.

get_params

Create a set of parameters for the model.

reset_params

Reset the parameters to the default values.

select

Select the device and signal to use for fitting.

Attributes

auto_run

Set to True to start a continously running worker.

property auto_run#

Set to True to start a continously running worker.

get_data()#

Get the data from last run.

get_params() Parameters[source]#

Create a set of parameters for the model.

Returns:

The parameters available for the model.

Return type:

lmfit.Parameters

reset_params()[source]#

Reset the parameters to the default values.

select(device: DeviceBase | str, signal: str | None = None)[source]#

Select the device and signal to use for fitting.

Parameters:
  • device (DeviceBase | str) – The device to use for fitting. Can be either a DeviceBase object or the name of the device.

  • signal (str, optional) – The signal to use for fitting. If not provided, the first signal in the device’s hints will be used.