diff plot_smb_tiff.py @ 3:6be076b081c4 draft

planemo upload for repository https://github.com/rolfverberg/galaxytools commit b5d7c209a0ba024789ccfb89ec874e8b9c280149-dirty
author rv43
date Mon, 13 Mar 2023 15:49:12 +0000
parents 9f331fb5be2c
children 0ffa2fbc7546
line wrap: on
line diff
--- a/plot_smb_tiff.py	Mon Mar 13 15:34:21 2023 +0000
+++ b/plot_smb_tiff.py	Mon Mar 13 15:49:12 2023 +0000
@@ -13,6 +13,8 @@
     # Parse command line arguments
     parser = argparse.ArgumentParser(
             description='Plot an image for the SMB schema')
+    parser.add_argument('-o', '--output_file',
+            help='''Output file name.''')
     parser.add_argument('--cycle',
             required=True,
             help='''Run cycle.''')
@@ -124,7 +126,7 @@
     title = 'image_files[0]'
     plt.figure(title)
     plt.imshow(data)
-    plt.savefig('image.jpg')
+    plt.savefig(args.output_file)
     plt.close(fig=title)
 
 if __name__ == "__main__":