casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
task_rmtables.py
Go to the documentation of this file.
00001 import os
00002 import glob
00003 from taskinit import *
00004 from tasksinfo import *
00005 
00006 def rmtables(tablenames=None):
00007        """ Removes tables cleanly 
00008            Arguments may contain *, ?. Ranges [] also supported but not ~ expansion.
00009        """
00010 
00011        casalog.origin('rmtables')
00012        tablelist = []
00013        for tables in tablenames :
00014           for table in glob.glob(tables) :
00015              tablelist.append(table)
00016        for table in tablelist :
00017           casalog.post('Removing '+table)
00018        cu.removetable(tablelist)
00019