Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Adding Tools to HIPE | ||||||||
Line: 21 to 21 | ||||||||
Task Registry | ||||||||
Changed: | ||||||||
< < | ||||||||
> > | ||||||||
Up to now you have made you task globally available to the system by specifying an instance of that task within the __init__.py file of your sub-system, e.g.:
# __init__.py file | ||||||||
Line: 51 to 51 | ||||||||
} } | ||||||||
Added: | ||||||||
> > | ||||||||
Prime input validation | ||||||||
Added: | ||||||||
> > | ||||||||
The mechanism above makes you task to become a tool within the system and it appears whenever a variable of type SpecificProduct is selected.
Sometimes this may not be enough, e.g. is certain situations your task will only run on a SpecificProduct if it contains certain contents. A typical situation would be when a SPIRE reduction operates on a ObservationContext: such a task should not be listed whenever a HIFI observation is selected... | ||||||||
Line: 73 to 75 | ||||||||
In other words, rather than writing this logic within the pre-amble or execution block of your task, we recommend you to move that logic into the parameter validation. This way we achieve two things:
| ||||||||
Added: | ||||||||
> > | ||||||||
Task Input Dialog | ||||||||
Added: | ||||||||
> > | ||||||||
Default dialog, drag-and-drop features, dedicated dialogs The application is generating a default input dialog for all registered tasks within the software. As the system does not know the intent of your task, it can only provide a dry-listing of all requested parameters; such a dialog may not be suitable for your purposes. | ||||||||
Line: 115 to 119 | ||||||||
Note that your GUI component must have a default constructor! | ||||||||
Added: | ||||||||
> > | ||||||||
Parameter Modifiers | ||||||||
Added: | ||||||||
> > | ||||||||
TODO: Default modifiers, specialized modifiers | ||||||||
Added: | ||||||||
> > | ||||||||
Task compliance | ||||||||
Added: | ||||||||
> > | ||||||||
| ||||||||
Added: | ||||||||
> > | ||||||||
Changed: | ||||||||
< < | -- JorgoBakker - 21 Dec 2007 | |||||||
> > | <-- Author: JorgoBakker - 21 Dec 2007 --> | |||||||
|