t.st_limit = float(args.st_limit) # TODO: make this more proper? if args.nona_args: t.nona_args = args.nona_args.replace('"', '').split(' ') if args.enblend_args: t.enblend_args = args.enblend_args.replace('"', '').split(' ') if args.super_t_xstep: t.super_t_xstep = args.super_t_xstep if args.super_t_ystep: t.super_t_ystep = args.super_t_ystep if args.clip_width: t.clip_width = args.clip_width if args.clip_height: t.clip_height = args.clip_height # if they specified clip but not supertile step recalculate the step so they don't have to do it if args.clip_width or args.clip_height and not (args.super_t_xstep or args.super_t_ystep): t.recalc_step() if args.full: t.make_full() t.enblend_lock = args.enblend_lock if args.single_dir and not os.path.exists(args.single_dir): os.mkdir(args.single_dir) print 'Running tiler' try: t.run()
t.st_limit = float(args.st_limit) # TODO: make this more proper? if args.nona_args: t.nona_args = args.nona_args.replace('"', '').split(' ') if args.enblend_args: t.enblend_args = args.enblend_args.replace('"', '').split(' ') if args.super_t_xstep: t.super_t_xstep = args.super_t_xstep if args.super_t_ystep: t.super_t_ystep = args.super_t_ystep if args.clip_width: t.clip_width = args.clip_width if args.clip_height: t.clip_height = args.clip_height # if they specified clip but not supertile step recalculate the step so they don't have to do it if args.clip_width or args.clip_height and not (args.super_t_xstep or args.super_t_ystep): t.recalc_step() if args.full: t.make_full() t.enblend_lock = args.enblend_lock if args.single_dir and not os.path.exists(args.single_dir): os.mkdir(args.single_dir) print 'Running tiler' try: t.run() except KeyboardInterrupt: