Skip to content

Commit

Permalink
fixed wrong logger called by fuzzifier module
Browse files Browse the repository at this point in the history
  • Loading branch information
dariomalchiodi committed Dec 2, 2024
1 parent 0b2cacc commit 61811e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mulearn/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '1.1.2'
__version__ = '1.1.3'


import copy
Expand Down
8 changes: 4 additions & 4 deletions mulearn/fuzzifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ def r2_to_mu(R_2, r_2_1, r_2_0):
raise ValueError("'profile' parameter should be equal to "
"'fixed' or 'infer' (provided value: {self.profile})")
if self.slope_ > 0:
logging.warning('Profile fitting returned a positive slope '
logger.warning('Profile fitting returned a positive slope '
f'({self.slope_})')
if self.intercept_ < 0:
logging.warning('Profile fitting returned a negative intercept '
logger.warning('Profile fitting returned a negative intercept '
f'({self.intercept_})')

return self
Expand Down Expand Up @@ -468,10 +468,10 @@ def r2_to_mu(R_2, r_2_1):
f"(provided value: {self.profile})")

if self.slope_ > 0:
logging.warning('Profile fitting returned a positive slope '
logger.warning('Profile fitting returned a positive slope '
f'({self.slope_})')
if self.intercept_ < 0:
logging.warning('Profile fitting returned a negative intercept '
logger.warning('Profile fitting returned a negative intercept '
f'({self.intercept_})')

return self
Expand Down

0 comments on commit 61811e8

Please sign in to comment.