exa.common.control.sweep.option.option_converter.convert_to_options#
- convert_to_options(config)#
Creates one of the options object based on configuration dictionary.
If configuration has keys
start
andstop
,StartStopOptions
is created.If configuration has keys
start_exp
andstop_exp
,StartStopBaseOptions
is created.If configuration has keys
center
andspan
,CenterSpanOptions
is created.If configuration has keys
center_exp
andspan_exp
,CenterSpanBaseOptions
is createdIf configuration has keys
fixed
,FixedOptions
is created.
Note
There is no support for callable options, so it is impossible to create
FunctionOptions
out of configuration- Parameters:
- Raises:
ValueError – Error is raised if config has unsupported structure
- Return type: