$def with (form, dirs)
This form helps you configure the motioncor2 automatic runs for one directory.
Will run on each TIFF:MotionCor2 -Gain "Gain filename" -FtBin "Binning" -FmDose "Dose per frame" -PixSize "Pixel size" -Throw "Initial frames to ignore" -Group "Group frames before aligning" -kV 300 -Patch 5 5 -RotGain 3$def ul(data): $if data: