Skip to content

Commit 92b9b2f

Browse files
committed
Use logger from log module instead of being a parameter
It's an API breaking change, so that's a major release then. Sigh.
1 parent 24d92ca commit 92b9b2f

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<groupId>ch.unibas.biozentrum.imcf</groupId>
1313
<artifactId>python-imcflibs</artifactId>
14-
<version>0.5.2-SNAPSHOT</version>
14+
<version>1.0.0-SNAPSHOT</version>
1515

1616
<name>python-imcflibs</name>
1717
<description>

src/imcflibs/imagej/misc.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

33
from ij import IJ # pylint: disable-msg=E0401
44

5-
def show_status(logger, msg):
5+
from ..log import LOG as log
6+
7+
def show_status(msg):
68
"""Wrapper to update the ImageJ status bar and the log simultaneously."""
7-
logger.info(msg)
9+
log.info(msg)
810
IJ.showStatus(msg)
911

1012

11-
def show_progress(logger, cur, final):
13+
def show_progress(cur, final):
1214
"""Wrapper to update the progress bar and issue a log message."""
1315
# ij.IJ.showProgress is adding 1 to the value given as first parameter...
14-
logger.info("Progress: %s / %s (%s)" % (cur+1, final, (1.0+cur)/final))
16+
log.info("Progress: %s / %s (%s)", cur+1, final, (1.0+cur)/final)
1517
IJ.showProgress(cur, final)

0 commit comments

Comments
 (0)