Mercurial > repos > ximgchess > hexrd
comparison hedm_npz_to_tesr.xml @ 4:b49a8ef3351d draft
"planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hedm_npz_to_tesr commit 0db0d2633f65e2ceca2e34c8899a52b18965d059"
author | ximgchess |
---|---|
date | Thu, 01 Apr 2021 18:29:39 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:54513f5fc836 | 4:b49a8ef3351d |
---|---|
1 <tool id="hedm_npz_to_tesr" name="HEDM to tesr" version="0.1.0" python_template_version="3.5"> | |
2 <description>Convert HEDM npz to a Neper tesr</description> | |
3 <requirements> | |
4 <requirement type="package" version="1.19">numpy</requirement> | |
5 </requirements> | |
6 <command detect_errors="exit_code"><![CDATA[ | |
7 $__tool_directory__/hedm_npz_to_tesr.py | |
8 --voxel_spacing $voxel_spacing | |
9 #if $names.x_name: | |
10 -x '$names.x_name' | |
11 #end if | |
12 #if $names.y_name: | |
13 -y '$names.y_name' | |
14 #end if | |
15 #if $names.z_name: | |
16 -z '$names.z_name' | |
17 #end if | |
18 #if $names.grain_map: | |
19 --grain_map '$names.grain_map' | |
20 #end if | |
21 '$input' | |
22 '$output' | |
23 ]]></command> | |
24 <inputs> | |
25 <!-- change format to approriate npz subclass when available --> | |
26 <param name="input" type="data" format="zip" label="HEDM npz file"/> | |
27 <param name="voxel_spacing" type="float" value="0.005" min="0" label="Voxel spacing"/> | |
28 <section name="names" expanded="false" title="Specify names used in HEDM.npz input file"> | |
29 <param name="x_name" type="text" value="" label="Name of the X array in the input" optional="true" help="Deafault is a name containing 'X'"/> | |
30 <param name="y_name" type="text" value="" label="Name of the Y array in the input" optional="true" help="Deafault is a name containing 'Y'"/> | |
31 <param name="z_name" type="text" value="" label="Name of the Z array in the input" optional="true" help="Deafault is a name containing 'Z'"/> | |
32 <param name="grain_map" type="text" value="" label="Name of the grain map in the input" optional="true" help="Deafault is a name containing 'grain'"/> | |
33 </section> | |
34 </inputs> | |
35 <outputs> | |
36 <!-- output format should be changed to tesr when that is available --> | |
37 <data name="output" format="txt" label="${input.name.rsplit(sep='.',maxsplit=1)[0]}.tesr"/> | |
38 </outputs> | |
39 <tests> | |
40 <test> | |
41 <!-- change format to approriate npz subclass when available --> | |
42 <param name="input" ftype="zip" value="HEDM_map.npz"/> | |
43 <output name="output" file="HEDM_map.tesr"/> | |
44 </test> | |
45 </tests> | |
46 <help><![CDATA[ | |
47 Create a neper compatible tesr format file from a HEDM numpy compressed file. | |
48 The converter will look for columns named: Xs, Ys, Zs, and grain_map by default, | |
49 If the input file uses different names, the user should specify them. | |
50 ]]></help> | |
51 </tool> |