Module iraftask
source code
module iraftask.py -- defines IrafTask and IrafPkg classes
$Id: iraftask.py 1463 2011-06-24 22:58:30Z stsci_embray $
R. White, 2000 June 26
iraftask defines the original PyRAF task functionality which pre-dates
the creation of IRAF ECL. irafecl is closely related and derived from
iraftask, providing drop-in replacements for the Task classes defined
here which also support ECL syntax like "iferr" and $errno.
|
|
mutateCLTask2Pkg(o,
loaded=1,
klass=<class pyraf.iraftask.IrafPkg at 0x2a9bfce460>)
Hack an IRAF CL task object into an IRAF package object |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Imports:
os,
sys,
copy,
re,
basicpar,
minmatch,
irafutils,
irafglobals,
taskpars,
subproc,
irafinst,
iraf,
irafpar,
irafexecute,
cl2py,
fnmatch
|
Split qualifiedName into components.
qualifiedName looks like
[[package.]task.]paramname[subscript][.field], where subscript is an
index in brackets. Returns a tuple with (package, task, paramname,
subscript, field). IRAF one-based subscript is changed to Python
zero-based subscript.
|
_IrafTask_attr_dict
- Value:
{'_currentParList': None,
'_currentParpath': None,
'_defaultParList': None,
'_defaultParpath': None,
'_foreign': 0,
'_fullpath': None,
'_hasparfile': 1,
'_hidden': 0,
...
|
|
all_task_definitions
- Value:
[<IrafCLTask /usr/stsci/iraf/iraf/unix/hlib/zzsetenv (/usr/stsci/iraf/
iraf/unix/hlib/zzsetenv.def) Pkg: Bin: >,
<IrafPkg clpackage (hlib$clpackage.cl) Pkg: clpackage Bin: bin$>,
<IrafPythonTask cl (cl$cl.par) Pkg: clpackage Bin: bin$ Hidden>,
<IrafPkg dbms (dbms$dbms.cl) Pkg: clpackage Bin: bin$>,
<IrafPkg dataio (dataio$dataio.cl) Pkg: clpackage Bin: bin$>,
<IrafPkg images (images$images.cl) Pkg: clpackage Bin: bin$>,
<IrafPkg language (language$language.cl) Pkg: clpackage Bin: bin$>,
...
|
|
_re_foreign_par
- Value:
re.compile(r'\$((?P<n>[0-9]+)|(?P<all>\*)|(\((?P<paren>[0-9]+)\))|(\((
?P<allparen>\*)\)))')
|
|