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.
- Return type:
list of BaseDetector
- Raises:
TypeError – If detectors is not a BaseDetector or a list of BaseDetector.