Mercurial > repos > rv43 > plot_smb_tiff
changeset 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 | 576071826197 |
children | 0ffa2fbc7546 |
files | image.jpg plot_smb_tiff.py plot_smb_tiff.xml |
diffstat | 3 files changed, 6 insertions(+), 3 deletions(-) [+] |
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__":
--- a/plot_smb_tiff.xml Mon Mar 13 15:34:21 2023 +0000 +++ b/plot_smb_tiff.xml Mon Mar 13 15:49:12 2023 +0000 @@ -1,10 +1,11 @@ -<tool id="plot_smb_tiff" name="Plot SMB Image" version="0.1.2" python_template_version="3.9"> +<tool id="plot_smb_tiff" name="Plot SMB Image" version="0.1.3" python_template_version="3.9"> <description>Plot an image for the SMB file schema</description> <requirements> <requirement type="package" version="3.5.2">matplotlib</requirement> </requirements> <command detect_errors="exit_code"><![CDATA[ $__tool_directory__/plot_smb_tiff.py + --output_file 'image.jpg' --cycle '$cycle' --station '$station' --btr '$btr' @@ -25,7 +26,7 @@ <param name="image_index" type='integer' value="0" min="0" label="Image index relative the first"/> </inputs> <outputs> - <data name="image" format="jpg" label="Plot" /> + <data name="output_file" format="jpg" label="Plot" from_work_dir="image.jpg"/> <data name="log" format="txt" label="Log"/> </outputs> <help><![CDATA[