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
startandstop,StartStopOptionsis created.If configuration has keys
start_expandstop_exp,StartStopBaseOptionsis created.If configuration has keys
centerandspan,CenterSpanOptionsis created.If configuration has keys
center_expandspan_exp,CenterSpanBaseOptionsis createdIf configuration has keys
fixed,FixedOptionsis created.
- Parameters:
- Raises:
ValueError – Error is raised if config has unsupported structure
- Return type: