Skip to content

Commit

Permalink
Fix log and output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
lguerard committed Mar 1, 2023
1 parent 82514c8 commit 253e56a
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,11 @@ def check_folder(path):
if out_file_extension == "BMP":
split_channels = False

temp_out_dir = os.path.join(src_dir, "out")
if out_dir is None:
out_dir = os.path.join(src_dir, "out")
os.makedirs(out_dir)
out_dir = temp_out_dir
if not os.path.exists(temp_out_dir):
os.makedirs(out_dir)


out_dir = str(out_dir)
Expand All @@ -273,8 +275,8 @@ def check_folder(path):
basename = os.path.splitext(basename)[0]

# Import the file with BioFormats
progress_bar(file_id + 1, len(files), 2, "Processing: " + str(file_id))
IJ.log("\\Update3:Currently opening " + basename + "...")
progress_bar(file_id + 1, len(files), 1, "Processing: " + str(file_id))
# IJ.log("\\Update3:Currently opening " + basename + "...")

series_count = get_series_count_from_ome_metadata(file)
if not pad_number:
Expand Down

0 comments on commit 253e56a

Please sign in to comment.