NRAO Home > CASA > CASA Toolkit Reference Manual
sd.selector.is_empty - Function

5.1.3 Check if any selection has been set
Description

Check if any selection has been set.

If any selection is set, the method returns False. Otherwise, it returns True.

Arguments

Returns
bool

Example

   # create selector without any selection  
   sel=sd.selector()  
   # is_empty() returns True  
   sel.is_empty()  
   True  
   # set any selection  
   sel.set_ifs([0])  
   # then, is_empty() returns False  
   sel.is_empty()  
   False


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