(self)
Dynamically add available SALib analyzers as ProblemSpec methods.
Dynamically add available SALib analyzers as ProblemSpec methods.
Dynamically add available SALib analyzers as ProblemSpec methods .
def _add_analyzers(self):
        """Dynamically add available SALib analyzers as ProblemSpec methods."""
        for analyzer in avail_approaches(analyzers):
            func = getattr(importlib.import_module('SALib.analyze.{}'.format(analyzer)), 'analyze')
            method_name = "analyze_{}".format(analyzer.replace('_analyzer', ''))

            self.__setattr__(method_name, MethodType(self._method_creator(func, 'analyze'), self))
def _add_analyzers ( self ) : for analyzer in avail_approaches ( analyzers ) : func = getattr ( importlib . import_module ( 'SALib.analyze.{}' . format ( analyzer ) ) , 'analyze' ) method_name = "analyze_{}" . format ( analyzer . replace ( '_analyzer' , '' ) ) self . __setattr__ ( method_name , MethodType ( self . _method_creator ( func , 'analyze' ) , self ) )