Public Member Functions | |
def | __init__ |
def | getMSlist |
def | isItMS |
def | getFileslist |
def | runPartition |
def | usage |
Public Attributes | |
inpdir | |
outdir | |
mmsdir | |
cleanup |
Definition at line 13 of file partitionhelper.py.
def partitionhelper.convertToMMS.__init__ | ( | self, | |
inpdir = None , |
|||
mmsdir = None , |
|||
createmslink = False , |
|||
cleanup = False |
|||
) |
Run the partition task to create MMSs from a directory with MSs
Definition at line 18 of file partitionhelper.py.
def partitionhelper.convertToMMS.getFileslist | ( | self, | |
files | |||
) |
Get a list of non-MS files from a directory. files -> a tuple that is returned by the following call: files = os.walk(self.inpdir,followlinks=True).next() It will return files and directories that are not MSs. It will skip files that start with .
Definition at line 183 of file partitionhelper.py.
References partitionhelper.convertToMMS.isItMS().
def partitionhelper.convertToMMS.getMSlist | ( | self, | |
files | |||
) |
Get a list of MSs from a directory. files -> a tuple that is returned by the following call: files = os.walk(self.inpdir,followlinks=True).next() It will test if a directory is an MS and will only return true MSs, that have Type:Measurement Set in table.info. It will skip directories that start with . and those that do not end with extension .ms.
Definition at line 114 of file partitionhelper.py.
References partitionhelper.convertToMMS.isItMS().
def partitionhelper.convertToMMS.isItMS | ( | self, | |
dir | |||
) |
Check the type of a directory. dir --> full path of a directory. Returns 1 for an MS, 2 for a cal table and 3 for a MMS. If 0 is returned, it means any other type or an error.
Definition at line 146 of file partitionhelper.py.
Referenced by partitionhelper.convertToMMS.getFileslist(), and partitionhelper.convertToMMS.getMSlist().
def partitionhelper.convertToMMS.runPartition | ( | self, | |
ms, | |||
mmsdir, | |||
createlink | |||
) |
Run partition with default values to create an MMS. ms --> full pathname of the MS mmsdir --> directory to save the MMS to createlink --> when True, it will create a symbolic link to the just created MMS in the same directory with extension .ms
Definition at line 227 of file partitionhelper.py.
References casa_in_py.default(), and partitionhelper.convertToMMS.mmsdir.
def partitionhelper.convertToMMS.usage | ( | self | ) |
Definition at line 279 of file partitionhelper.py.
Definition at line 27 of file partitionhelper.py.
Referenced by task_sdfit.sdfit_worker.__del__(), task_sdimprocess.sdimprocess_worker.__del__(), task_sdsave.sdsave_worker.__del__(), task_sdcoadd.sdcoadd_worker.__del__(), task_sdstat.sdstat_worker.__del__(), task_sdreduce.sdreduce_worker.__del__(), sdutil.sdtask_template_imaging.finalize(), task_sdimprocess.sdimprocess_worker.finalize(), tests.test_uvcontsub3.zeroth.tearDown(), tests.test_uvcontsub.zeroth.tearDown(), tests.test_uvcontsub3.fourth.tearDown(), tests.test_uvcontsub.fourth.tearDown(), tests.test_uvcontsub3.combspw.tearDown(), tests.test_uvcontsub3.knowncombspw.tearDown(), and tests.test_uvcontsub.combspw.tearDown().
Definition at line 23 of file partitionhelper.py.
Definition at line 26 of file partitionhelper.py.
Referenced by partitionhelper.convertToMMS.runPartition().
Definition at line 24 of file partitionhelper.py.