Difference: DpHipeTools (102 vs. 103)

Revision 1032013-03-21 - JavierDiaz

Line: 1 to 1
 
META TOPICPARENT name="WritingTasks"
<-- ANALYTICS CODE - DO NOT EDIT -->
<-- Google Analytics script BEGIN -->
<-- Google Analytics script END -->
Line: 169 to 169
 Group 1 of asciiTableReader Group 2 of asciiTableReader
Added:
>
>
Sample code in Java and Jython :
 // Jython 
    from herschel.ia.task import ParameterGroups, Group
    def getGroups(self):
        return ParameterGroups(self, [
           Group("Pool", "Export a pool", ["input"]), 
           Group("Observations", "Export Observations to HSA Directory format", ["input2"])])

 // Java 
    @Override
    public ParameterGroups getGroups() {
        Group g1 = new Group("Basic", "Basic interface for simple table data", FILE, TABLE_TYPE,
                PARSER_SKIP);
        Group g2 = new Group("Advanced", "Comprehensive interface for complex table data",
                ADVANCED_NAMES);
        return new ParameterGroups(this, g1, g2);
    }
  This automatic layout may not suit your task for several reasons:
  • A parameter may need several input fields (see for instance the angle parameter of the rotate task, in the figure below).
 
This site is powered by the TWiki collaboration platform Powered by Perl