comparison larch_plot.xml @ 3:5b993aff09e3 draft

planemo upload for repository https://github.com/MaterialsGalaxy/larch-tools/tree/main/larch_plot commit d4c7e090dc5c94395d7e1574845ac2c76f2e4f5f
author muon-spectroscopy-computational-project
date Fri, 22 Mar 2024 14:23:33 +0000
parents 59d0d15a40ef
children 35d24102cefd
comparison
equal deleted inserted replaced
2:59d0d15a40ef 3:5b993aff09e3
2 <description>plot Athena projects</description> 2 <description>plot Athena projects</description>
3 <macros> 3 <macros>
4 <!-- version of underlying tool (PEP 440) --> 4 <!-- version of underlying tool (PEP 440) -->
5 <token name="@TOOL_VERSION@">0.9.74</token> 5 <token name="@TOOL_VERSION@">0.9.74</token>
6 <!-- version of this tool wrapper (integer) --> 6 <!-- version of this tool wrapper (integer) -->
7 <token name="@WRAPPER_VERSION@">0</token> 7 <token name="@WRAPPER_VERSION@">1</token>
8 <!-- citation should be updated with every underlying tool version --> 8 <!-- citation should be updated with every underlying tool version -->
9 <!-- typical fields to update are version, month, year, and doi --> 9 <!-- typical fields to update are version, month, year, and doi -->
10 <token name="@TOOL_CITATION@">10.1088/1742-6596/430/1/012007</token> 10 <token name="@TOOL_CITATION@">10.1088/1742-6596/430/1/012007</token>
11 <import>macros.xml</import> 11 <import>macros.xml</import>
12 </macros> 12 </macros>
31 <inputs> 31 <inputs>
32 <param name="dat_files" type="data" format="prj" multiple="true" min="1" label="Athena projects" help="X-ray Absorption Spectroscopy (XAS) data, in Athena project format"/> 32 <param name="dat_files" type="data" format="prj" multiple="true" min="1" label="Athena projects" help="X-ray Absorption Spectroscopy (XAS) data, in Athena project format"/>
33 <repeat name="plots" title="Plots" min="1" default="1" help="Each additional entry will create another output plot"> 33 <repeat name="plots" title="Plots" min="1" default="1" help="Each additional entry will create another output plot">
34 <conditional name="variable"> 34 <conditional name="variable">
35 <param name="variable" type="select" display="radio" label="Variable" help="Variable to plot on the y axis"> 35 <param name="variable" type="select" display="radio" label="Variable" help="Variable to plot on the y axis">
36 <option value="norm" selected="true">Normalised xμ</option> 36 <option value="flat" selected="true">Flattened xμ</option>
37 <option value="dmude">Derivative of xμ</option> 37 <option value="dmude">Derivative of xμ</option>
38 <option value="chir_mag">Magnitude of χ(r)</option> 38 <option value="chir_mag">Magnitude of χ(r)</option>
39 </param> 39 </param>
40 <when value="norm"> 40 <when value="flat">
41 <expand macro="plot_limits_energy"/> 41 <expand macro="plot_limits_energy"/>
42 <param name="y_limit_min" type="float" label="Minimum xμ(E)" optional="true" help="If set, plot will be limited to this value on the y axis."/> 42 <param name="y_limit_min" type="float" label="Minimum xμ(E)" optional="true" help="If set, plot will be limited to this value on the y axis."/>
43 <param name="y_limit_max" type="float" label="Maximum xμ(E)" optional="true" help="If set, plot will be limited to this value on the y axis."/> 43 <param name="y_limit_max" type="float" label="Maximum xμ(E)" optional="true" help="If set, plot will be limited to this value on the y axis."/>
44 </when> 44 </when>
45 <when value="dmude"> 45 <when value="dmude">
63 </outputs> 63 </outputs>
64 <tests> 64 <tests>
65 <!-- 1: plot types --> 65 <!-- 1: plot types -->
66 <test expect_num_outputs="1"> 66 <test expect_num_outputs="1">
67 <param name="dat_files" value="test.prj"/> 67 <param name="dat_files" value="test.prj"/>
68 <param name="variable" value="norm"/> 68 <param name="variable" value="flat"/>
69 <param name="variable" value="dmude"/> 69 <param name="variable" value="dmude"/>
70 <param name="variable" value="chir_mag"/> 70 <param name="variable" value="chir_mag"/>
71 <output_collection name="plot_collection" type="list" count="3"/> 71 <output_collection name="plot_collection" type="list" count="3"/>
72 </test> 72 </test>
73 <!-- 2: plot limits --> 73 <!-- 2: plot limits -->
74 <test expect_num_outputs="1"> 74 <test expect_num_outputs="1">
75 <param name="dat_files" value="test.prj,merged.prj"/> 75 <param name="dat_files" value="test.prj,merged.prj"/>
76 <param name="variable" value="norm"/> 76 <param name="variable" value="flat"/>
77 <param name="x_limit_min" value="7000"/> 77 <param name="x_limit_min" value="7000"/>
78 <param name="x_limit_max" value="7200"/> 78 <param name="x_limit_max" value="7200"/>
79 <param name="y_limit_min" value="0"/> 79 <param name="y_limit_min" value="0"/>
80 <param name="y_limit_max" value="1"/> 80 <param name="y_limit_max" value="1"/>
81 <output_collection name="plot_collection" type="list" count="1"/> 81 <output_collection name="plot_collection" type="list" count="1"/>