Skip to content

Commit 159738e

Browse files
committed
Add some log messages to apply_model()
1 parent d4d86e3 commit 159738e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/imcflibs/imagej/shading.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@ def apply_model(imps, model, merge=True):
3838
The merged ImagePlus with all channels, or the original list of stacks
3939
with the shading-corrected image planes.
4040
"""
41+
log.debug("Applying shading correction...")
4142
calc = ij.plugin.ImageCalculator()
42-
for stack in imps:
43-
# log.debug("Processing channel...")
43+
for i, stack in enumerate(imps):
44+
log.debug("Processing channel %i...", i)
4445
calc.run("Divide stack", stack, model)
4546

4647
if not merge:
4748
return imps
4849

50+
log.debug("Merging shading-corrected channels...")
4951
merger = ij.plugin.RGBStackMerge()
5052
merged_imp = merger.mergeChannels(imps, False)
5153
return merged_imp

0 commit comments

Comments
 (0)