validate_scan

Contents

validate_scan#

abtem.scan.validate_scan(scan, probe=None)[source]#

Validate that the input is a valid scan or a sequence of valid scan positions.

Parameters:
  • scan (Sequence or np.ndarray or BaseScan) – The scan or scan positions to validate. If None, a scan with a single position at (0, 0) is returned.

  • probe (Probe or None) – If given the scan is matched to the extent of the probe.

Returns:

validated_scan – The validated scan object.

Return type:

BaseScan