def METHOD_NAME():
    ps.genCoords()
    dlg = ShiftfieldPreviewDialog()
    ret = dlg.ShowModal()
    dlg.Destroy()
    #stop after one full scan
    stopTask.when = 40 + 3*ps.imsize
    print((stopTask.when))