From 29b9929bf1ff844a755a45883fbbdc47dcd114bc Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 25 Jul 2019 15:50:29 +0200 Subject: lint --- lib/functions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/functions.py b/lib/functions.py index a0631b8..ebeb2a2 100644 --- a/lib/functions.py +++ b/lib/functions.py @@ -298,6 +298,7 @@ class analytic: 'safe_sqrt': lambda x: np.sqrt(np.abs(x)), } + @staticmethod def functions(safe_functions_enabled = False): """ Retrieve pre-defined set of regression function candidates. @@ -387,6 +388,7 @@ class analytic: return functions + @staticmethod def _fmap(reference_type, reference_name, function_type): """Map arg/parameter name and best-fit function name to function text suitable for AnalyticFunction.""" ref_str = '{}({})'.format(reference_type,reference_name) @@ -408,6 +410,7 @@ class analytic: return 'np.sqrt({})'.format(ref_str) return 'analytic._{}({})'.format(function_type, ref_str) + @staticmethod def function_powerset(fit_results, parameter_names, num_args = 0): """ Combine per-parameter regression results into a single multi-dimensional function. -- cgit v1.2.3