From 61811e838f05db0912a9a2a43358c777b0debd7e Mon Sep 17 00:00:00 2001 From: Dario Malchiodi Date: Mon, 2 Dec 2024 13:24:27 +0100 Subject: [PATCH] fixed wrong logger called by fuzzifier module --- mulearn/__init__.py | 2 +- mulearn/fuzzifier.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mulearn/__init__.py b/mulearn/__init__.py index 114e7ec..22f08f3 100644 --- a/mulearn/__init__.py +++ b/mulearn/__init__.py @@ -1,4 +1,4 @@ -__version__ = '1.1.2' +__version__ = '1.1.3' import copy diff --git a/mulearn/fuzzifier.py b/mulearn/fuzzifier.py index abba336..cd9379c 100644 --- a/mulearn/fuzzifier.py +++ b/mulearn/fuzzifier.py @@ -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 @@ -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