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

5.1.3 Unset all selections
Description

Unset all selections. Note that the method doesn’t clear sorting order set by set_order. To unset sort order, you have to execute set_order([]).

Arguments

Returns

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  
   # reset() clear all selections  
   sel.reset()  
   # thus, is_empty() returns True  
   sel.is_empty()  
   True


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