from args import get_argparser, parse_args, get_aligner, get_bbox 

def render(aligner, bbox, z):
  aligner.total_bbox = bbox
  aligner.zs = z
  aligner.render_section_all_mips(z, bbox)

if __name__ == '__main__':
  parser = get_argparser()
  args = parse_args(parser) 
  a = get_aligner(args)
  bbox = get_bbox(args)

  for z in range(args.bbox_start[2], args.bbox_stop[2]): 
    print('Rendering z={0}'.format(z))
    render(a, bbox, z)


[((9, 11, 9, 26), 'args.get_argparser', 'get_argparser', ({}, {}), '()', False, 'from args import get_argparser, parse_args, get_aligner, get_bbox\n'), ((10, 9, 10, 27), 'args.parse_args', 'parse_args', ({(10, 20, 10, 26): 'parser'}, {}), '(parser)', False, 'from args import get_argparser, parse_args, get_aligner, get_bbox\n'), ((11, 6, 11, 23), 'args.get_aligner', 'get_aligner', ({(11, 18, 11, 22): 'args'}, {}), '(args)', False, 'from args import get_argparser, parse_args, get_aligner, get_bbox\n'), ((12, 9, 12, 23), 'args.get_bbox', 'get_bbox', ({(12, 18, 12, 22): 'args'}, {}), '(args)', False, 'from args import get_argparser, parse_args, get_aligner, get_bbox\n')]