Exemple #1
0
def _wrap_gui_bean(jb):
    jb.setWarn(False)
    if _jyparams.roi in jb:
        jb[_jyparams.roi] = _roi_wrap(jb[_jyparams.roi])
    if _jyparams.roilist in jb:
        jl = jb[_jyparams.roilist]
        if jl:
            l = _create_list(jl[0])
            for r in jl:
                l.append(_roi_wrap(r))
        else:
            l = None
        jb[_jyparams.roilist] = l
    jb.setWarn(True)
Exemple #2
0
def _wrap_gui_bean(ob, nb):
    for k in ob:
        v = ob[k]
        if k == _jyparams.roi:
            v = _roi_wrap(v)
        elif k == _jyparams.roilist:
            if v:
                l = _create_list(v[0])
                for r in v:
                    l.append(_roi_wrap(r))
            else:
                l = None
            v = l
        nb[k] = v
    return nb
def _wrap_gui_bean(ob, nb):
    for k in ob:
        v = ob[k]
        if k == _jyparams.roi:
            v = _roi_wrap(v)
        elif k == _jyparams.roilist:
            if v:
                l = _create_list(v[0])
                for r in v:
                    l.append(_roi_wrap(r))
            else:
                l = None
            v = l
        nb[k] = v
    return nb
def _wrap_gui_bean(jb):
    if _jyparams.roi in jb:
        jb[_jyparams.roi] = _roi_wrap(jb[_jyparams.roi])
    if _jyparams.roilist in jb:
        jl = jb[_jyparams.roilist]
        if jl:
            l = _create_list(jl[0])
            for r in jl:
                l.append(r)
        else:
            l = None
        jb[_jyparams.roilist] = l