pypet/naturalnaming.py
def _map_type_to_dict(self, type_name):
        """ Maps a an instance type representation string (e.g. 'RESULT')
        to the corresponding dictionary in root.

        """
        root = self._root_instance

        if type_name == RESULT:
            return root._results
        elif type_name == PARAMETER:
            return root._parameters
        elif type_name == DERIVED_PARAMETER:
            return root._derived_parameters
        elif type_name == CONFIG:
            return root._config
        elif type_name == LEAF:
            return root._other_leaves
        else:
            raise RuntimeError('You shall not pass!')
def _map_type_to_dict(self, type_name):
        """ Maps a an instance type representation string (e.g. 'RESULT')
        to the corresponding dictionary in root.

        """
        root = self._root_instance

        if type_name == RESULT:
            return root._results
        elif type_name == PARAMETER:
            return root._parameters
        elif type_name == DERIVED_PARAMETER:
            return root._derived_parameters
        elif type_name == CONFIG:
            return root._config
        elif type_name == LEAF:
            return root._other_leaves
        else:
            raise RuntimeError('You shall not pass!')
def _map_type_to_dict ( self , type_name ) : root = self . _root_instance if type_name == RESULT : return root . _results elif type_name == PARAMETER : return root . _parameters elif type_name == DERIVED_PARAMETER : return root . _derived_parameters elif type_name == CONFIG : return root . _config elif type_name == LEAF : return root . _other_leaves else : raise RuntimeError ( 'You shall not pass!' )
Maps a an instance type representation string (e.g. 'RESULT')
        to the corresponding dictionary in root.
Maps a an instance type representation string ( e . g . RESULT ) to the corresponding dictionary in root .