pypet/trajectory.py
def f_add_wildcard_functions(self, func_dict):
        """#TODO"""
        for wildcards, function in func_dict.items():
            if not isinstance(wildcards, tuple):
                wildcards = (wildcards,)
            for wildcard in wildcards:
                if wildcard in self._wildcard_keys:
                    raise ValueError('Your wildcard `%s` is used twice1' % wildcard)
                self._wildcard_keys[wildcard] = wildcards
            self._wildcard_functions[wildcards] = function
            self._logger.debug('Added wildcard function `%s`.' % str(wildcards))
def f_add_wildcard_functions(self, func_dict):
        """#TODO"""
        for wildcards, function in func_dict.items():
            if not isinstance(wildcards, tuple):
                wildcards = (wildcards,)
            for wildcard in wildcards:
                if wildcard in self._wildcard_keys:
                    raise ValueError('Your wildcard `%s` is used twice1' % wildcard)
                self._wildcard_keys[wildcard] = wildcards
            self._wildcard_functions[wildcards] = function
            self._logger.debug('Added wildcard function `%s`.' % str(wildcards))
def f_add_wildcard_functions ( self , func_dict ) : for wildcards , function in func_dict . items ( ) : if not isinstance ( wildcards , tuple ) : wildcards = ( wildcards , ) for wildcard in wildcards : if wildcard in self . _wildcard_keys : raise ValueError ( 'Your wildcard `%s` is used twice1' % wildcard ) self . _wildcard_keys [ wildcard ] = wildcards self . _wildcard_functions [ wildcards ] = function self . _logger . debug ( 'Added wildcard function `%s`.' % str ( wildcards ) )
#TODO
#TODO