validate_detectors#
- abtem.detectors.validate_detectors(detectors=None, waves=None)[source]#
Validate that a variable is a list of detectors.
- Parameters:
detectors (BaseDetector or list of BaseDetector) – The detectors to validate.
waves (Waves, optional) – The waves to match the detectors to.
- Returns:
A list of validated detectors. With waves, every detector that matches itself to the waves (e.g. by auto-sizing its outer angle) is returned as a matched copy, and the detectors that were passed in are not modified.
- Return type:
list of BaseDetector
- Raises:
TypeError – If detectors is not a BaseDetector or a list of BaseDetector.