Skip to content

Commit 506892f

Browse files
committed
Make "NONE" checks case-insensitive
1 parent ab1d6ed commit 506892f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

β€Žsrc/imcflibs/imagej/shading.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def process_folder(path, suffix, outpath, model_file, fmt):
121121
fmt : str
122122
The file format suffix for storing the results.
123123
"""
124-
if model_file in ["-", "NONE"]:
124+
if model_file.upper() in ["-", "NONE"]:
125125
model = None
126126
else:
127127
model = ij.IJ.openImage(model_file)

β€Žsrc/imcflibs/pathtools.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def derive_out_dir(in_dir, out_dir):
171171
str
172172
The full path to the directory to be used for output and temp files.
173173
"""
174-
if out_dir in ["-", "NONE"]:
174+
if out_dir.upper() in ["-", "NONE"]:
175175
out_dir = in_dir
176176
log.info("No output directory given, using input dir [%s].", out_dir)
177177
else:

0 commit comments

Comments
Β (0)