ewoksid16b.tasks.utils.read.find_scan_size#
- ewoksid16b.tasks.utils.read.find_scan_size(arr0, arr1)[source]#
For ‘amesh’ (and ‘dmesh’) scans. Determine (slow_size, fast_size) from two flat motor-positioners. The fast axis is identified as the motor whose first step is larger. Motor noise should be much smaller than the step. The slow axis is then used as a cross-check.
Issues could be if step is comparable to noise, or if it is actually 1D scan (0 intervals).
- Parameters:
arr0 – first flat motor-position array (1-D array-like).
arr1 – second flat motor-position array (1-D array-like).
- Returns:
(slow_size, fast_size, fast_arr, slow_arr).