def get_value(self, keys, exp_path=False, project_path=False,
                  complete=False, on_projects=False, on_globals=False,
                  projectname=None, no_fix=False, only_keys=False, base='',
                  return_list=False, archives=False, **kwargs):
        """
        Get one or more values in the configuration

        Parameters
        ----------
        keys: list of str
            A list of keys to get the values of. %(get_value_note)s
        %(ModelOrganizer.info.parameters.exp_path|project_path)s
        %(ModelOrganizer.info.common_params)s
        %(ModelOrganizer.info.parameters.no_fix|only_keys|archives)s
        base: str
            A base string that shall be put in front of each key in `values` to
            avoid typing it all the time
        return_list: bool
            If True, the list of values corresponding to `keys` is returned,
            otherwise they are printed separated by a new line to the standard
            output
        """
        def pretty_print(val):
            if isinstance(val, dict):
                if only_keys:
                    val = list(val.keys())
                return ordered_yaml_dump(
                    val, default_flow_style=False).rstrip()
            return str(val)
        config = self.info(exp_path=exp_path, project_path=project_path,
                           complete=complete, on_projects=on_projects,
                           on_globals=on_globals, projectname=projectname,
                           no_fix=no_fix, return_dict=True, insert_id=False,
                           archives=archives, **kwargs)
        ret = [0] * len(keys)
        for i, key in enumerate(keys):
            if base:
                key = base + key
            key, sub_config = utils.go_through_dict(key, config)
            ret[i] = sub_config[key]
        if return_list:
            return ret
        return (self.print_ or six.print_)('\n'.join(map(pretty_print, ret)))
def get_value ( self , keys , exp_path = False , project_path = False , complete = False , on_projects = False , on_globals = False , projectname = None , no_fix = False , only_keys = False , base = '' , return_list = False , archives = False , ** kwargs ) : def pretty_print ( val ) : if isinstance ( val , dict ) : if only_keys : val = list ( val . keys ( ) ) return ordered_yaml_dump ( val , default_flow_style = False ) . rstrip ( ) return str ( val ) config = self . info ( exp_path = exp_path , project_path = project_path , complete = complete , on_projects = on_projects , on_globals = on_globals , projectname = projectname , no_fix = no_fix , return_dict = True , insert_id = False , archives = archives , ** kwargs ) ret = [ 0 ] * len ( keys ) for i , key in enumerate ( keys ) : if base : key = base + key key , sub_config = utils . go_through_dict ( key , config ) ret [ i ] = sub_config [ key ] if return_list : return ret return ( self . print_ or six . print_ ) ( '\n' . join ( map ( pretty_print , ret ) ) )
Get one or more values in the configuration

        Parameters
        ----------
        keys: list of str
            A list of keys to get the values of. %(get_value_note)s
        %(ModelOrganizer.info.parameters.exp_path|project_path)s
        %(ModelOrganizer.info.common_params)s
        %(ModelOrganizer.info.parameters.no_fix|only_keys|archives)s
        base: str
            A base string that shall be put in front of each key in `values` to
            avoid typing it all the time
        return_list: bool
            If True, the list of values corresponding to `keys` is returned,
            otherwise they are printed separated by a new line to the standard
            output