comparison imagej2_create_image.py @ 3:bb65623b90a8 draft

planemo upload commit 8f8692e83217a072a3ed928469621f1f606ab28a-dirty
author iuc
date Tue, 04 Aug 2015 11:15:10 -0400
parents 26703988cdb3
children 48f25b8408e1
comparison
equal deleted inserted replaced
2:ea7a01d0f218 3:bb65623b90a8
36 imagej2_base_utils.stop_err( "ImageJ not found!" ) 36 imagej2_base_utils.stop_err( "ImageJ not found!" )
37 cmd += ' %s %d %d %d %s %s' % ( args.image_title, args.width, args.height, args.depth, args.image_type, tmp_image_path ) 37 cmd += ' %s %d %d %d %s %s' % ( args.image_title, args.width, args.height, args.depth, args.image_type, tmp_image_path )
38 proc = subprocess.Popen( args=cmd, stderr=tmp_stderr, stdout=tmp_stdout, shell=True ) 38 proc = subprocess.Popen( args=cmd, stderr=tmp_stderr, stdout=tmp_stdout, shell=True )
39 rc = proc.wait() 39 rc = proc.wait()
40 if rc != 0: 40 if rc != 0:
41 error_message = imagej2_base_utils.get_stderr_exception( tmp_err, tmp_stderr, tmp_stdout ) 41 error_message = imagej2_base_utils.get_stderr_exception( tmp_err, tmp_stderr, tmp_out, tmp_stdout )
42 imagej2_base_utils.stop_err( error_message ) 42 imagej2_base_utils.stop_err( error_message )
43 shutil.move( tmp_image_path, args.out_fname ) 43 shutil.move( tmp_image_path, args.out_fname )
44 imagej2_base_utils.cleanup_before_exit( tmp_dir ) 44 imagej2_base_utils.cleanup_before_exit( tmp_dir )