Skip to content
Snippets Groups Projects
Commit 255fea52 authored by Nick Bearson's avatar Nick Bearson
Browse files

convert a print to a logged error message, to ensure it goes to a redirected log file. #32

parent 43ba125d
No related branches found
No related tags found
No related merge requests found
......@@ -200,7 +200,7 @@ def grid_setup(args, work_dir=os.getcwd()):
globstring = "{}_{}_{}_s{}*".format(glminfo[0], glminfo[1], glminfo[2], glminfo[3].strftime("%Y%j%H%M"))
fileglob = glob(os.path.join(os.path.dirname(args.filenames[0]), globstring))
if len(fileglob) != 3:
print("There are not (yet) three GLM files from this minute. This may be expected. Exiting.")
log.error("There are not (yet) three GLM files from this minute. This may be expected. Exiting.")
exit(0)
args.filenames = fileglob
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment