Question: Finding File Format Of Data Item
0
gravatar for Kelly Vincent
8.3 years ago by
Kelly Vincent340
Kelly Vincent340 wrote:
Begin forwarded message:
• 568 views
ADD COMMENTlink modified 8.3 years ago by James Taylor470 • written 8.3 years ago by Kelly Vincent340
0
gravatar for James Taylor
8.3 years ago by
James Taylor470
United States
James Taylor470 wrote:
In theory, the correct attribute should be "$input1.extension". Let us know if that doesn't work though.
ADD COMMENTlink written 8.3 years ago by James Taylor470
0
gravatar for Jeremy Goecks
8.3 years ago by
Jeremy Goecks2.2k
Jeremy Goecks2.2k wrote:
Hi Belinda, The condition you want to use is this: #if isinstance( $input1.datatype, $__app__.datatypes_registry.get_data type_by_extension('interval').__class__): You can see this example in context by looking at the XML tool definition file for the intersect tool, intersect.xml Let us know if this doesn't solve your problem. Best, J.
ADD COMMENTlink written 8.3 years ago by Jeremy Goecks2.2k
That solved the first problem. But I would like to also put a conditional on another parameter again based on the datatype. Using format="interval" or the isinstance as above, neither works. Is it possible? Belinda
ADD REPLYlink written 8.3 years ago by Belinda M. Giardine40
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 179 users visited in the last hour