Commit ec49716b authored by Adrian Nievergelt's avatar Adrian Nievergelt

additional check if no subframes found

parent f2f91983
......@@ -20,7 +20,7 @@ rawDir = 'raw'
correctedDir = 'corrected'
alignedDir = 'aligned'
tiltStackDir = 'tiltStacks'
subframesDir = 'subframes'
subframesDir = None
correctAlignSLURM = "/projects/project-nieverge/scripts/cluster/correctAndAlign.slurm"
......@@ -93,6 +93,10 @@ for (dirpath, dirnames, filenames) in os.walk(mdocDir):
print("Found subframes in directory \"%s\"" % (subframesDir))
break
if not subframesDir:
print("No subframes found in current directory tree, terminating!")
sys.exit()
stackParams = sorted(stackParams, key = lambda i: i['tiltangle'])
inBaseName = re.search("(\w+)\..*", args.input).group(1)
stackFileName = os.path.join(mdocDir, inBaseName + ".stackFiles")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment