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

Re-activate logging in imagej.projections and imagej.shading

parent ca29501b
No related branches found
No related tags found
No related merge requests found
"""Functions for creating Z projections."""
from .bioformats import export_using_orig_name
from ..log import LOG as log
from ij.plugin import ZProjector
......@@ -18,7 +19,7 @@ def average(imp):
ij.ImagePlus
The result of the projection.
"""
# log.debug("Creating average projection...")
log.debug("Creating average projection...")
proj = ZProjector.run(imp, "avg")
return proj
......@@ -36,7 +37,7 @@ def maximum(imp):
ij.ImagePlus
The result of the projection.
"""
# log.debug("Creating maximum intensity projection...")
log.debug("Creating maximum intensity projection...")
proj = ZProjector.run(imp, "max")
return proj
......@@ -64,7 +65,7 @@ def create_and_save(imp, projections, path, filename, export_format):
'Sum': 'sum',
}
for projection in projections:
# log.debug("Creating '%s' projection..." % projection)
log.debug("Creating '%s' projection...", projection)
proj = ZProjector.run(imp, command[projection])
export_using_orig_name(proj,
path, filename,
......
......@@ -5,6 +5,7 @@ import os
from ..imagej import bioformats
from ..imagej import projections
from ..pathtools import listdir_matching
from ..log import LOG as log
from ij import IJ
from ij.plugin import ImageCalculator, RGBStackMerge
......@@ -70,6 +71,7 @@ def correct_and_project(filename, path, model, proj, fmt):
The file format suffix to be used for the results and projections, e.g.
'.ics' for ICS2 etc. See the Bio-Formats specification for details.
"""
log.debug("Processing [%s]...", filename)
if not os.path.exists(path):
os.makedirs(path)
......@@ -87,7 +89,7 @@ def correct_and_project(filename, path, model, proj, fmt):
# corrected.show()
corrected.close()
# log.debug("Done processing [%s]" % os.path.basename(in_file))
log.debug("Done processing [%s].", os.path.basename(filename))
def process_folder(path, suffix, outpath, model_file, fmt):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment