Exemplo n.º 1
0
def calibration_demo(width=400,height=300,
                 scrolled_width=40000,scrolled_height=40000,
                 xscroll=2000,yscroll=1000,**config):
    """Demo of join tree calibration"""
    from gPy.Models import JFR
    from Tkinter import Tk
    from gPy.Utils import scrolled_frame
    root=scrolled_frame(Tk(),width=scrolled_width,height=scrolled_height,
                        xscroll=xscroll,yscroll=yscroll)
    jfr = JFR(asia.copy(),modify=True,
              elimination_order=['VisitAsia','Tuberculosis','Smoking','Cancer',
                                 'TbOrCa','XRay','Bronchitis','Dyspnea'])
    jfr.gui_calibrate(root)
    root.mainloop()