8.5.7. pymodaq_gui.config_saver_loader module

class pymodaq_gui.config_saver_loader.ConfigSaverLoader(base_param, config, base_path=None)[source]

Bases: object

Allows to set Parameters values from previously saved one in a configuration file

This plays the role of a cache for these Parameters

Parameters:
  • base_param (Parameter) – The parent Parameter whose children should be cached in the config file

  • config (BaseConfig) – The Config object that will cache the Parameter values

  • base_path (Iterable[str]) – an iterable of string defining a “category”

Attributes:
base_param

Get/Set the parent Parameter whose children should be saved in the config file

base_path

Get/Set the iterable of string defining a particular configuration to be loaded/saved

Methods

load_config

save_config

load_config(param=None)[source]
save_config(param_to_save=None)[source]
property base_param

Get/Set the parent Parameter whose children should be saved in the config file

property base_path

Get/Set the iterable of string defining a particular configuration to be loaded/saved

pymodaq_gui.config_saver_loader.get_set_roi_path()[source]

creates and return the config folder path for managers files