It would be nice to copy and paste the Python regex “X[±][0-9]+Y[±][0-9]±[0-9]+” for every SerialEM dataset, but often there are a few micrographs at the beginning, e.g. from screening, that don’t match. Right now if there are any strings that don’t match, there is a Match.group() call on NoneType. Instead would it be possible to put the nonmatching items into an extra exposure group?
Thank you for this suggestion. We are considering its implementation.
FYI this is working great now!
The correct regular expression is
for TIFFs from SerialEM with “multiple records hole position and shot number in hole” checked in the file setup. (Using this setting is the only 100% reliable way to split shift groups later on).