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

Add 'imagej.misc' module

parent 21fb7d96
Branches
Tags
No related merge requests found
"""Miscellaneous ImageJ related functions, mostly convenience wrappers."""
from ij import IJ # pylint: disable-msg=E0401
def show_status(logger, msg):
"""Wrapper to update the ImageJ status bar and the log simultaneously."""
logger.info(msg)
IJ.showStatus(msg)
def show_progress(logger, cur, final):
"""Wrapper to update the progress bar and issue a log message."""
# ij.IJ.showProgress is adding 1 to the value given as first parameter...
logger.info("Progress: %s / %s (%s)" % (cur+1, final, (1.0+cur)/final))
IJ.showProgress(cur, final)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment