Module ObitTask
source code
This module provides the ObitTask class. It adapts the Task class
from the Task module to be able to run Obit tasks:
>>> imean = ObitTask('Template')
The resulting class instance has all associated adverbs as
attributes:
>>> print imean.ind
0.0
>>> imean.ind = 1
>>> print imean.indisk
1.0
>>> imean.indi = 2.0
>>> print imean.ind
2.0
It also knows the range for these attributes:
>>> imean.ind = -1
Traceback (most recent call last):
...
ValueError: value '-1.0' is out of range for attribute 'indisk'
>>> imean.ind = 10.0
Traceback (most recent call last):
...
ValueError: value '10.0' is out of range for attribute 'indisk'
>>> imean.inc = 'UVDATA'
>>> print imean.inclass
UVDATA
|
ObitTask
This class implements running Obit tasks.
|