processing_components/visibility/base.py
def list_ms(msname, ack=False):
    """ List sources and data descriptors in a MeasurementSet

    :param msname: File name of MS
    :return:
    """
    try:
        from casacore.tables import table  # pylint: disable=import-error
    except ModuleNotFoundError:
        raise ModuleNotFoundError("casacore is not installed")
    try:
        from processing_components.visibility import msv2
    except ModuleNotFoundError:
        raise ModuleNotFoundError("cannot import msv2")
    
    tab = table(msname, ack=ack)
    log.debug("list_ms: %s" % str(tab.info()))
    
    fieldtab = table('%s/FIELD' % msname, ack=False)
    sources = fieldtab.getcol('NAME')
    
    dds = list(numpy.unique(tab.getcol('DATA_DESC_ID')))
    
    return sources, dds
 List sources and data descriptors in a MeasurementSet

    :param msname: File name of MS
    :return:
    
List sources and data descriptors in a MeasurementSet
List sources and data descriptors in a MeasurementSet
def list_ms(msname, ack=False):
    try:
        from casacore.tables import table  
    except ModuleNotFoundError:
        raise ModuleNotFoundError("casacore is not installed")
    try:
        from processing_components.visibility import msv2
    except ModuleNotFoundError:
        raise ModuleNotFoundError("cannot import msv2")
    tab = table(msname, ack=ack)
    log.debug("list_ms: %s" % str(tab.info()))
    fieldtab = table('%s/FIELD' % msname, ack=False)
    sources = fieldtab.getcol('NAME')
    dds = list(numpy.unique(tab.getcol('DATA_DESC_ID')))
    return sources, dds
def list_ms ( msname , ack = False ) : try : from casacore . tables import table except ModuleNotFoundError : raise ModuleNotFoundError ( "casacore is not installed" ) try : from processing_components . visibility import msv2 except ModuleNotFoundError : raise ModuleNotFoundError ( "cannot import msv2" ) tab = table ( msname , ack = ack ) log . debug ( "list_ms: %s" % str ( tab . info ( ) ) ) fieldtab = table ( '%s/FIELD' % msname , ack = False ) sources = fieldtab . getcol ( 'NAME' ) dds = list ( numpy . unique ( tab . getcol ( 'DATA_DESC_ID' ) ) ) return sources , dds
List sources and data descriptors in a MeasurementSet
List sources and data descriptors in a MeasurementSet
""" List sources and data descriptors in a MeasurementSet

    :param msname: File name of MS
    :return:
    """ # pylint: disable=import-error
None
msname
File name of MS
File name of MS
ack