text = text + fhdr % (sname,'Scan','Spw','Nchan','Nrows','Size')
from __future__ import absolute_import
from casatasks.private.casa_transition import is_CASA6
from casatasks import casalog
from . import partitionhelper as ph
from . import flaghelper as fh
import partitionhelper as ph
def listpartition(vis=None, createdict=None, listfile=None):
"""List information about an MMS data set in the logger:
vis -- Name of multi-MS or normal MS.
default: none. example: vis='uidA002.mms'
createdict -- Create and return a dictionary with information about
listfile -- save the output to a file
default: ''. Example: listfile="mylist.txt"
The task also returns a dictionary with scan summary information
casalog.origin('listpartition')
if (type(vis) == str) & os.path.exists(vis):
raise Exception('Visibility data set not found - please verify the name')
if (type(listfile) == str) & os.path.exists(listfile):
raise Exception('Output file \'%s\' already exists'%listfile)
casalog.post('Will save output to \'%s\''%listfile)
ffout = open(listfile, 'w')
ismms = mslocal.ismultims()