from __future__ import absolute_import
from __future__ import print_function
from casatasks.private.casa_transition import is_CASA6
from casatools import table
casacpath = glob(os.sep.join(os.environ["CASAPATH"].split() +
casacpath.extend(glob(os.sep.join([os.environ["CASAPATH"].split()[0],
sys.path.extend(casacpath)
Returns a CASA tool with name toolname, or None on failure.
print("The factory name for", toolname, "is unknown.")
def listshapes(musthave=[], mspat="*[-_.][Mm][Ss]", combine='or',
sortfirst=False, incl_ddid=False):
Lists the data shapes of the MSes matched by mspat.
if type(musthave) == str:
musthave = [s.replace(',', '') for s in musthave.split()]
holderdict['mytb'] = get_tool('tb')
holderdict['incl_ddid'] = incl_ddid
splitatdoubleglob = mspat.split('**/')
if len(splitatdoubleglob) > 1:
if splitatdoubleglob[0] == '':
splitatdoubleglob[0] = '.'
holderdict['mspat'] = splitatdoubleglob[1]
os.path.walk(splitatdoubleglob[0], checkMSes, holderdict)
holderdict['mspat'] = mspat
checkMSes(holderdict, '', [])
return holderdict['msdict']