Mercurial > repos > muon-spectroscopy-computational-project > larch_plot
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 0:886949a03377 | 1:002c18a3e642 |
|---|---|
| 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.71</token> | 5 <token name="@TOOL_VERSION@">0.9.71</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> |
| 36 <option value="norm" selected="true">Normalised xμ</option> | 36 <option value="norm" selected="true">Normalised 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="norm"> |
| 41 <expand macro="energy_limits"/> | 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."/> | |
| 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."/> | |
| 42 </when> | 44 </when> |
| 43 <when value="dmude"> | 45 <when value="dmude"> |
| 44 <expand macro="energy_limits"/> | 46 <expand macro="plot_limits_energy"/> |
| 47 <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."/> | |
| 48 <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."/> | |
| 45 </when> | 49 </when> |
| 46 <when value="chir_mag"> | 50 <when value="chir_mag"> |
| 47 <param name="energy_min" type="float" label="Minimum r (ang)" optional="true" help="If set, data will be cropped below this value in angstroms."/> | 51 <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."/> |
| 48 <param name="energy_max" type="float" label="Maximum r (ang)" optional="true" help="If set, data will be cropped above this value in angstroms."/> | 52 <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."/> |
| 53 <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."/> | |
| 54 <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."/> | |
| 49 </when> | 55 </when> |
| 50 </conditional> | 56 </conditional> |
| 51 </repeat> | 57 </repeat> |
| 52 </inputs> | 58 </inputs> |
| 53 <outputs> | 59 <outputs> |
| 54 <collection name="plot_collection" format="png" type="list"> | 60 <collection name="plot_collection" format="png" type="list"> |
| 55 <discover_datasets pattern="__name_and_ext__" directory="plots"/> | 61 <discover_datasets pattern="__name_and_ext__" directory="plots"/> |
| 56 </collection> | 62 </collection> |
| 57 </outputs> | 63 </outputs> |
| 58 <tests> | 64 <tests> |
| 65 <!-- 1: plot types --> | |
| 59 <test expect_num_outputs="1"> | 66 <test expect_num_outputs="1"> |
| 60 <param name="dat_files" value="test.prj"/> | 67 <param name="dat_files" value="test.prj"/> |
| 61 <param name="variable" value="norm"/> | 68 <param name="variable" value="norm"/> |
| 62 <param name="energy_format" value="absolute"/> | |
| 63 <param name="energy_min" value="7000"/> | |
| 64 <param name="variable" value="dmude"/> | 69 <param name="variable" value="dmude"/> |
| 65 <param name="energy_format" value="relative"/> | 70 <param name="variable" value="chir_mag"/> |
| 66 <param name="energy_max" value="10"/> | 71 <output_collection name="plot_collection" type="list" count="3"/> |
| 67 <output_collection name="plot_collection" type="list" count="2"/> | 72 </test> |
| 73 <!-- 2: plot limits --> | |
| 74 <test expect_num_outputs="1"> | |
| 75 <param name="dat_files" value="test.prj"/> | |
| 76 <param name="variable" value="norm"/> | |
| 77 <param name="x_limit_min" value="7000"/> | |
| 78 <param name="x_limit_max" value="7200"/> | |
| 79 <param name="y_limit_min" value="0"/> | |
| 80 <param name="y_limit_max" value="1"/> | |
| 81 <output_collection name="plot_collection" type="list" count="1"/> | |
| 68 </test> | 82 </test> |
| 69 </tests> | 83 </tests> |
| 70 <help><