nodemap.py
def load_live():
    """ Load live nodemap information.
    
        Returns a nested datastructure in normalised form.
    """
    output = {}
    lctl_get_param("nodemap.*", output)
    s, e = cmd("lctl nodemap_info",) # need quoting to avoid shell expansion!
    nodemaps = [n.split('.')[-1] for n in s.strip().split('\n')]
    #print(nodemaps)
    for nmap in nodemaps:
        lctl_get_param("nodemap.{nmap}.*".format(nmap=nmap), output)
    to_int(output)
    deep_sort(output)

    return output
 Load live nodemap information.
    
        Returns a nested datastructure in normalised form.
    
Load live nodemap information.
Returns a nested datastructure in normalised form.
Load live nodemap information . Returns a nested datastructure in normalised form .
def load_live():
    output = {}
    lctl_get_param("nodemap.*", output)
    s, e = cmd("lctl nodemap_info",) 
    nodemaps = [n.split('.')[-1] for n in s.strip().split('\n')]
    for nmap in nodemaps:
        lctl_get_param("nodemap.{nmap}.*".format(nmap=nmap), output)
    to_int(output)
    deep_sort(output)
    return output
def load_live ( ) : output = { } lctl_get_param ( "nodemap.*" , output ) s , e = cmd ( "lctl nodemap_info" , ) nodemaps = [ n . split ( '.' ) [ - 1 ] for n in s . strip ( ) . split ( '\n' ) ] for nmap in nodemaps : lctl_get_param ( "nodemap.{nmap}.*" . format ( nmap = nmap ) , output ) to_int ( output ) deep_sort ( output ) return output
Load live nodemap information.
Load live nodemap information .
""" Load live nodemap information.
    
        Returns a nested datastructure in normalised form.
    """ # need quoting to avoid shell expansion! #print(nodemaps)