Exemplo n.º 1
0
def optimise(view, edit):
    read_view = ui_read.all(view)
    spots = read_spots.spots(view)
    plasmas = core_read.plasmas(read_view.ptext)

    unused = analyse.unused(plasmas, spots)
    optimised = plist.remove_all(plasmas, unused)
    ui_write.plasmas(view, edit, plist.sort(optimised))
Exemplo n.º 2
0
 def r(plasmas):
     write.plasmas(view, edit, plist.sort(plasmas))