changeset 1:a0be4e3aa66d draft

"planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 67d86b67fe5eb83766a49254241307dc1d363697"
author ximgchess
date Mon, 23 Nov 2020 16:20:31 +0000
parents 72deb053b5a5
children f0db3e3b9d99
files macros.xml
diffstat 1 files changed, 17 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/macros.xml	Sat Nov 21 03:34:48 2020 +0000
+++ b/macros.xml	Mon Nov 23 16:20:31 2020 +0000
@@ -288,7 +288,18 @@
             <param name="refit" type="text" value="1" label="refit">
                 <validator type="regex" message="">^\d(,\d)*$</validator>
             </param>
-            <param name="tth_max" type="float" value="14.25" label="tth_max"/>
+            <conditional name="max_tth">
+                <param name="tth_max_value" type="select" label="Set tth_max">
+                    <option value="true" selected="true">true</option>
+                    <option value="false">false</option>
+                    <option value="entered">enter value</option>
+		</param> 
+                <when value="true"/>
+                <when value="false"/>
+                <when value="entered">
+                    <param name="tth_max" type="float" value="14.25" label="tth_max"/>
+	        </when>
+	  </conditional>
         </section>
     </xml>
 
@@ -322,7 +333,11 @@
     omega: $omega
 
   refit: $refit
-  tth_max: $tolerance.tth_max # true, false, or a non-negative value, defaults to true
+  #if $tolerance.max_tth.tth_max_value == 'entered':
+  tth_max: $tolerance.max_tth.tth_max # true, false, or a non-negative value, defaults to true
+  #else
+  tth_max: $tolerance.max_tth.tth_max_value # true, false, or a non-negative value, defaults to true
+  #end if
 ]]></token>
 
 </macros>