Exemplo n.º 1
0
def set_wfsm_typel(wfsm):
    wfsm[0][0].typel = [wfsm[0][0]['type']]
    emem.mapv(wfsm[1:],
              map_func=set_ele_typel,
              other_args=[wfsm],
              inplace=True)
    return (wfsm)
Exemplo n.º 2
0
def set_wfsm_fatag(wfsm):
    wfsm[0][0].fatag = null
    emem.mapv(wfsm[1:],
              map_func=set_ele_fatag,
              other_args=[wfsm],
              inplace=True)
    return (wfsm)
Exemplo n.º 3
0
def wfstree(o, *args):
    lngth = len(args)
    #njobj = o._data
    #wfsm = jobj2wfsm(njobj)
    wfsm = o._wfsm
    depth = len(wfsm)
    start = elel.uniform_index(args[0], depth + 1) if (lngth > 0) else 0
    end = elel.uniform_index(args[1], depth + 1) if (lngth > 1) else (depth +
                                                                      1)
    dotpm = emem.mapv(wfsm, map_func=lambda ele: ele.dotpath)
    dotpm = dotpm[start:end]
    for row in dotpm:
        for each in row:
            print(each)
Exemplo n.º 4
0
def set_wfsm_dotpath(wfsm):
    emem.mapv(wfsm, map_func=set_ele_dotpath, inplace=True)
    return (wfsm)
Exemplo n.º 5
0
def set_wfsm_fapl(wfsm):
    wfsm[0][0].fapl = []
    emem.mapv(wfsm[1:], map_func=set_ele_fapl, other_args=[wfsm], inplace=True)
    return (wfsm)