Skip to content
Snippets Groups Projects
Commit 506892f8 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Make "NONE" checks case-insensitive

parent ab1d6ed7
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ def process_folder(path, suffix, outpath, model_file, fmt):
fmt : str
The file format suffix for storing the results.
"""
if model_file in ["-", "NONE"]:
if model_file.upper() in ["-", "NONE"]:
model = None
else:
model = ij.IJ.openImage(model_file)
......
......@@ -171,7 +171,7 @@ def derive_out_dir(in_dir, out_dir):
str
The full path to the directory to be used for output and temp files.
"""
if out_dir in ["-", "NONE"]:
if out_dir.upper() in ["-", "NONE"]:
out_dir = in_dir
log.info("No output directory given, using input dir [%s].", out_dir)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment