7.5.7. pymodaq_gui.config module
- class pymodaq_gui.config.ConfigSaverLoader(base_param: Parameter, config: BaseConfig, base_path: Iterable[str] = None)[source]
Bases:
objectAllows 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_paramGet/Set the parent Parameter whose children should be saved in the config file
base_pathGet/Set the iterable of string defining a particular configuration to be loaded/saved
Methods
load_config
save_config
- 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