Coverage for /wheeldirectory/casa-6.7.0-12-py3.10.el8/lib/py/lib/python3.10/site-packages/casatasks/private/task_rmtables.py: 100%
13 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-01 07:19 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-01 07:19 +0000
1import os
2import glob
4from casatools import ctsys
5from casatasks import casalog
7def rmtables(tablenames=None):
8 """ Removes tables cleanly
9 Arguments may contain *, ?. Ranges [] also supported but not ~ expansion.
10 """
12 casalog.origin('rmtables')
13 tablelist = []
14 for tables in tablenames :
15 for table in glob.glob(tables) :
16 tablelist.append(table)
17 for table in tablelist :
18 casalog.post('Removing '+table)
19 ctsys.removetable(tablelist)