Commit a90de517 authored by Adrian Nievergelt's avatar Adrian Nievergelt

fix for log file

parent f66549cb
......@@ -133,14 +133,15 @@ if args.verbose:
elif args.noLog:
verboseString = " &>/dev/null"
else:
verboseString = " &>%s" % (inBaseName + "_alignment.log")
verboseString = ">> %s 2>&1" % (inBaseName + "_alignment.log")
with open(os.path.join(mdocDir, inBaseName + "_alignFramesMC2.sh"), "w+") as scriptFile:
scriptFile.write("#!/bin/bash\n\n")
scriptFile.write("# Script file for motioncor2 alignment of tilt series created by mc2FromMDOC.py on %s by %s\n\n" % (datetime.today().strftime('%Y-%m-%d %H:%M'), getpass.getuser()) )
scriptFile.write('cd "$(dirname "$0")"\n')
scriptFile.write("mkdir -p %s\n\n" % (alignedDir))
scriptFile.write("mkdir -p %s\n" % (alignedDir))
scriptFile.write("rm -f %s\n\n" % (inBaseName + "_alignment.log"))
for imageParams in stackParams:
if args.doseWeight:
......
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