def test_optimize(self): print 'Loading raw project...' project = PTOProject.from_file_name('in.pto') print 'Creating optimizer...' optimizer = PTOptimizer(project) #self.assertTrue(project.text != None) print 'Running optimizer...' optimizer.run()
def test_optimize(self): print 'Loading raw project...' project = PTOProject.from_file_name('in.pto') print 'Creating optimizer...' optimizer = PTOptimizer(project) #self.assertTrue(project.text != None) print 'Running optimizer...' optimizer.run()
image_line.set_variable('Ra', 0) image_line.set_variable('Rb', 0) image_line.set_variable('Rc', 0) image_line.set_variable('Rd', 0) image_line.set_variable('Re', 0) ''' if args.set_optimize_xy: optimize_xy_only(pto) # Needs to be late to get the earlier additions if we used them if args.optimize: print 'Optimizing' opt = PTOptimizer(pto) opt.reoptimize = args.reoptimize opt.run() # Default if args.center != False: print 'Centering...' center(pto) if args.pre_opt: print 'Optimizing' opt = PreOptimizer(pto) opt.debug = args.verbose opt.stdev = args.stdev opt.run() # Default if args.center != False: print 'Centering...' center(pto)
image_line.set_variable('Ra', 0) image_line.set_variable('Rb', 0) image_line.set_variable('Rc', 0) image_line.set_variable('Rd', 0) image_line.set_variable('Re', 0) ''' if args.set_optimize_xy: optimize_xy_only(pto) # Needs to be late to get the earlier additions if we used them if args.optimize: print 'Optimizing' opt = PTOptimizer(pto) opt.reoptimize = args.reoptimize opt.run() # Default if args.center != False: print 'Centering...' center(pto) if args.pre_opt: print 'Optimizing' opt = PreOptimizer(pto) opt.run() # Default if args.center != False: print 'Centering...' center(pto) if args.pre_opt_pt: