Mercurial > repos > muon-spectroscopy-computational-project > larch_plot
diff larch_plot.xml @ 1:002c18a3e642 draft
planemo upload for repository https://github.com/MaterialsGalaxy/larch-tools/tree/main/larch_plot commit 1cf6d7160497ba58fe16a51f00d088a20934eba6
author | muon-spectroscopy-computational-project |
---|---|
date | Wed, 06 Dec 2023 13:04:06 +0000 |
parents | 886949a03377 |
children | 59d0d15a40ef |
line wrap: on
line diff
--- a/larch_plot.xml Tue Nov 14 15:35:36 2023 +0000 +++ b/larch_plot.xml Wed Dec 06 13:04:06 2023 +0000 @@ -4,7 +4,7 @@ <!-- version of underlying tool (PEP 440) --> <token name="@TOOL_VERSION@">0.9.71</token> <!-- version of this tool wrapper (integer) --> - <token name="@WRAPPER_VERSION@">0</token> + <token name="@WRAPPER_VERSION@">1</token> <!-- citation should be updated with every underlying tool version --> <!-- typical fields to update are version, month, year, and doi --> <token name="@TOOL_CITATION@">10.1088/1742-6596/430/1/012007</token> @@ -38,14 +38,20 @@ <option value="chir_mag">Magnitude of χ(r)</option> </param> <when value="norm"> - <expand macro="energy_limits"/> + <expand macro="plot_limits_energy"/> + <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."/> + <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."/> </when> <when value="dmude"> - <expand macro="energy_limits"/> + <expand macro="plot_limits_energy"/> + <param name="y_limit_min" type="float" label="Minimum d(xμ(E))/dE" optional="true" help="If set, plot will be limited to this value on the y axis."/> + <param name="y_limit_max" type="float" label="Maximum d(xμ(E))/dE" optional="true" help="If set, plot will be limited to this value on the y axis."/> </when> <when value="chir_mag"> - <param name="energy_min" type="float" label="Minimum r (ang)" optional="true" help="If set, data will be cropped below this value in angstroms."/> - <param name="energy_max" type="float" label="Maximum r (ang)" optional="true" help="If set, data will be cropped above this value in angstroms."/> + <param name="x_limit_min" type="float" label="Minimum r (ang)" optional="true" help="If set, plot will be limited to this value on the x axis."/> + <param name="x_limit_max" type="float" label="Maximum r (ang)" optional="true" help="If set, plot will be limited to this value on the x axis."/> + <param name="y_limit_min" type="float" label="Minimum |χ(r)|" optional="true" help="If set, plot will be limited to this value on the y axis."/> + <param name="y_limit_max" type="float" label="Maximum |χ(r)|" optional="true" help="If set, plot will be limited to this value on the y axis."/> </when> </conditional> </repeat> @@ -56,15 +62,23 @@ </collection> </outputs> <tests> + <!-- 1: plot types --> <test expect_num_outputs="1"> <param name="dat_files" value="test.prj"/> <param name="variable" value="norm"/> - <param name="energy_format" value="absolute"/> - <param name="energy_min" value="7000"/> <param name="variable" value="dmude"/> - <param name="energy_format" value="relative"/> - <param name="energy_max" value="10"/> - <output_collection name="plot_collection" type="list" count="2"/> + <param name="variable" value="chir_mag"/> + <output_collection name="plot_collection" type="list" count="3"/> + </test> + <!-- 2: plot limits --> + <test expect_num_outputs="1"> + <param name="dat_files" value="test.prj"/> + <param name="variable" value="norm"/> + <param name="x_limit_min" value="7000"/> + <param name="x_limit_max" value="7200"/> + <param name="y_limit_min" value="0"/> + <param name="y_limit_max" value="1"/> + <output_collection name="plot_collection" type="list" count="1"/> </test> </tests> <help><![CDATA[