NRAO Home > CASA > CASA Toolkit Reference Manual
componentlist.iscomponentlist - Function

1.2.1 Is the argument a componentlist tool? (Not implemented yet)


Description

This global function can be used to determine if the supplied argument is a componentlist tool. If so it returns True, otherwise it returns False.

Arguments





Inputs

tool

The variable that you wish to test

allowed:

any

Default:

Returns
bool

Example

 
 
      include ’componentlist.g’  
      if (iscomponentlist(cl)) {  
        cl.simulate(2);  
      } else {  
        fail ’Not a componentlist’;  
      }  
 

__________________________________________________________________


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

Copyright 2016 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