build_throughput_from_config#
- build_throughput_from_config(config)[source]#
Build throughput from a configuration dictionary.
- Parameters:
config (
dictorfloatorstr) – Throughput configuration. If a dict with a"throughput"key, that entry is used, otherwise the input itself is. The throughput can then be a number (constant throughput), a dict (seeOpticsThroughput.from_config) or a file name (seeOpticsThroughput.from_filename).- Returns:
floatorOpticsThroughput– Constant throughput, or anOpticsThroughputinstance (callable, function of wavelength in Angstrom).- Raises:
ValueError – If the throughput is None.