Files
fold_slice/ptycho/utils/compile_cu_dirname.m
2026-08-07 15:56:42 +09:00

18 lines
431 B
Matlab

%COMPILE_APS_DIRNAME returns the default APS directory tree for a
% given scan number
%
% EXAMPLE:
% scan_dir = utils.compile_x12sa_dirname(10);
% -> scan_dir = 'S00000-00999/S00010/'
%
% written by Yi Jiang, based on PSI's code
function scan_dir = compile_cu_dirname(scan_no)
scan_dir = sprintf('S%05d-%05d/S%05d/',floor(scan_no/1000)*1000, ...
floor(scan_no/1000)*1000 + 999, ...
scan_no);
end