def transform(func):
    map  = AreaVi.ACTIVE.tag_ranges('sel')
    for index in xrange(0, len(map) - 1, 2):
        data = AreaVi.ACTIVE.get(map[index], map[index + 1])
        AreaVi.ACTIVE.delete(map[index], map[index + 1])
        AreaVi.ACTIVE.insert(map[index], func(data))
dataset/ETHPy150Open iogf/vy/vyapp/plugins/caps.py/transform/original