NRAO Home > CASA > CASA Cookbook and User Reference Manual

H.2 The task_yourtask.py file

You must write the python code that does the actual work. The task_*.py file function call sequence must be the same as specified in the XML file. We may relax the requirement that the function call sequence exactly match the sequence in the XML file in a future release.

The task_*.py file should contain the following preamble

import os  
from taskinit import *

plus any other global function imports you will need such as

import time

followed by the task function def. See Sect. H.3.2 for an example.


More information about CASA may be found at the CASA web page

Copyright © 2010 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search