diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-07-03 09:27:46 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-07-03 09:27:46 +0200 |
commit | e42f3541d9e16264f79e090ddd87b864f5c2a837 (patch) | |
tree | 4058b20f4d913678d616a7ec94a58109b2c21090 /lib/functions.py | |
parent | f1a9e8b419c3b0836989565fa462d7c67a4bc9b9 (diff) |
more consistent logging; use logger. instead of logging. where appropriate
Diffstat (limited to 'lib/functions.py')
-rw-r--r-- | lib/functions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/functions.py b/lib/functions.py index 359c8d7..0b849bd 100644 --- a/lib/functions.py +++ b/lib/functions.py @@ -229,7 +229,7 @@ class AnalyticFunction: else: X[i].extend([np.nan] * len(val[model_attribute])) elif key[0] == state_or_tran and len(key[1]) != dimension: - logging.warning( + logger.warning( "Invalid parameter key length while gathering fit data for {}/{}. is {}, want {}.".format( state_or_tran, model_attribute, len(key[1]), dimension ), @@ -263,7 +263,7 @@ class AnalyticFunction: error_function, self._regression_args, args=(X, Y), xtol=2e-15 ) except ValueError as err: - logging.warning( + logger.warning( "Fit failed for {}/{}: {} (function: {})".format( state_or_tran, model_attribute, err, self._model_str ), @@ -273,13 +273,13 @@ class AnalyticFunction: self._regression_args = res.x self.fit_success = True else: - logging.warning( + logger.warning( "Fit failed for {}/{}: {} (function: {})".format( state_or_tran, model_attribute, res.message, self._model_str ), ) else: - logging.warning( + logger.warning( "Insufficient amount of valid parameter keys, cannot fit {}/{}".format( state_or_tran, model_attribute ), |