8.5.7. pymodaq_gui.config_saver_loader module
- class pymodaq_gui.config_saver_loader.ConfigSaverLoader(base_param, config, base_path=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 fileconfig (
BaseConfig) – The Config object that will cache the Parameter valuesbase_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