Public Member Functions | |
def | __init__ |
def | override_arg |
def | initialize |
def | generateJobs |
def | executeJobs |
def | postExecution |
def | sum_dictionaries |
def | go |
Static Public Member Functions | |
def | getReferencedMSs |
def | restoreSubtableAgreement |
def | bypassParallelProcessing |
def | getBypassParallelProcessing |
def | isParallelMS |
def | findAbsPath |
def | listToCasaString |
Private Attributes | |
_arg | |
_arguser | |
_taskName | |
_executionList | |
_jobQueue | |
__originalParams | |
__bypass_parallel_processing | |
_cluster | |
_consolidateOutput | |
_sequential_return_list | |
Static Private Attributes | |
int | __bypass_parallel_processing |
This is the extension of the TaskHelper to allow for parallel operation. For simple tasks all that should be required to make a task parallel is to use this rather than the TaskHelper method above
Definition at line 12 of file parallel_task_helper.py.
def parallel.parallel_task_helper.ParallelTaskHelper.__init__ | ( | self, | |
task_name, | |||
args = {} |
|||
) |
Definition at line 22 of file parallel_task_helper.py.
def parallel.parallel_task_helper.ParallelTaskHelper.bypassParallelProcessing | ( | switch = 1 | ) | [static] |
# jagonzal (CAS-4287): Add a cluster-less mode to by-pass parallel processing for MMSs as requested switch=1 => Process each sub-Ms sequentially switch=2 => Process the MMS as a normal MS
Definition at line 267 of file parallel_task_helper.py.
Definition at line 88 of file parallel_task_helper.py.
References parallel.parallel_task_helper.ParallelTaskHelper.__bypass_parallel_processing, parallel.parallel_task_helper.ParallelTaskHelper._cluster, parallel.parallel_task_helper.ParallelTaskHelper._executionList, parallel.parallel_task_helper.ParallelTaskHelper._jobQueue, and parallel.parallel_task_helper.ParallelTaskHelper._sequential_return_list.
Referenced by parallel.parallel_task_helper.ParallelTaskHelper.go().
def parallel.parallel_task_helper.ParallelTaskHelper.findAbsPath | ( | input | ) | [static] |
Definition at line 305 of file parallel_task_helper.py.
This is the method which generates all of the actual jobs to be done. The default is to asume the input vis is a reference ms and build one job for each referenced ms.
Reimplemented in task_partition.PartitionHelper.
Definition at line 51 of file parallel_task_helper.py.
References parallel.parallel_task_helper.ParallelTaskHelper._arg, parallel.parallel_task_helper.ParallelTaskHelper._arguser, parallel.parallel_task_helper.ParallelTaskHelper._taskName, and taskinit.mstool.
Referenced by parallel.parallel_task_helper.ParallelTaskHelper.go().
# jagonzal (CAS-4287): Add a cluster-less mode to by-pass parallel processing for MMSs as requested switch=1 => Process each sub-Ms sequentially switch=2 => Process the MMS as a normal MS
Definition at line 276 of file parallel_task_helper.py.
def parallel.parallel_task_helper.ParallelTaskHelper.getReferencedMSs | ( | vis | ) | [static] |
Definition at line 193 of file parallel_task_helper.py.
References taskinit.mstool.
Definition at line 171 of file parallel_task_helper.py.
References parallel.parallel_task_helper.ParallelTaskHelper._arg, parallel.parallel_task_helper.ParallelTaskHelper._taskName, parallel.parallel_task_helper.ParallelTaskHelper.executeJobs(), parallel.parallel_task_helper.ParallelTaskHelper.generateJobs(), parallel.parallel_task_helper.ParallelTaskHelper.initialize(), and parallel.parallel_task_helper.ParallelTaskHelper.postExecution().
This is the setup portion. Currently it: * Finds the full path for the input vis.
Reimplemented in task_partition.PartitionHelper.
Definition at line 43 of file parallel_task_helper.py.
References parallel.parallel_task_helper.ParallelTaskHelper._arg.
Referenced by parallel.parallel_task_helper.ParallelTaskHelper.go(), tests.test_uvcontsub3.zeroth.setUp(), tests.test_uvcontsub.zeroth.setUp(), tests.test_uvcontsub3.fourth.setUp(), tests.test_split.SplitChecker.setUp(), tests.test_uvcontsub.fourth.setUp(), tests.test_uvcontsub3.combspw.setUp(), tests.test_uvcontsub3.knowncombspw.setUp(), and tests.test_uvcontsub.combspw.setUp().
def parallel.parallel_task_helper.ParallelTaskHelper.isParallelMS | ( | vis | ) | [static] |
This method will let us know if we can do the simple form of parallelization by invoking on many referenced mss.
Definition at line 285 of file parallel_task_helper.py.
References taskinit.mstool.
def parallel.parallel_task_helper.ParallelTaskHelper.listToCasaString | ( | inputList | ) | [static] |
This Method will take a list of integers and try to express them as a compact set using the CASA notation.
Definition at line 319 of file parallel_task_helper.py.
Referenced by task_partition.PartitionHelper._createPrimarySplitCommand(), task_partition.PartitionHelper._createScanSeparationCommands(), task_partition.PartitionHelper._createSPWSeparationCommands(), tests.test_partitionHelper.PartitionHelperTest.testDefaultSeparationCommands(), and tests.test_partitionHelper.PartitionHelperTest.testSpwSeparationCommands().
def parallel.parallel_task_helper.ParallelTaskHelper.override_arg | ( | self, | |
arg, | |||
value | |||
) |
Definition at line 40 of file parallel_task_helper.py.
References parallel.parallel_task_helper.ParallelTaskHelper._arguser.
Reimplemented in task_partition.PartitionHelper.
Definition at line 116 of file parallel_task_helper.py.
References parallel.parallel_task_helper.ParallelTaskHelper.__bypass_parallel_processing, parallel.parallel_task_helper.ParallelTaskHelper._cluster, parallel.parallel_task_helper.ParallelTaskHelper._consolidateOutput, parallel.parallel_task_helper.ParallelTaskHelper._sequential_return_list, parallel.parallel_task_helper.ParallelTaskHelper._taskName, and parallel.parallel_task_helper.ParallelTaskHelper.sum_dictionaries().
Referenced by parallel.parallel_task_helper.ParallelTaskHelper.go().
def parallel.parallel_task_helper.ParallelTaskHelper.restoreSubtableAgreement | ( | vis, | |
mastersubms = '' , |
|||
subtables = [] |
|||
) | [static] |
Tidy up the MMS vis by replacing the subtables of all SubMSs by the subtables from the SubMS given by "mastersubms". If specified, only the subtables in the list "subtables" are replaced, otherwise all. If "mastersubms" is not given, the first SubMS of the MMS will be used as master.
Definition at line 211 of file parallel_task_helper.py.
References taskinit.mstool, and taskinit.tbtool.
def parallel.parallel_task_helper.ParallelTaskHelper.sum_dictionaries | ( | self, | |
dict_list, | |||
ret_dict | |||
) |
Definition at line 155 of file parallel_task_helper.py.
References parallel.parallel_task_helper.ParallelTaskHelper.sum_dictionaries().
Referenced by parallel.parallel_task_helper.ParallelTaskHelper.postExecution(), and parallel.parallel_task_helper.ParallelTaskHelper.sum_dictionaries().
int parallel.parallel_task_helper.ParallelTaskHelper.__bypass_parallel_processing [static, private] |
Definition at line 20 of file parallel_task_helper.py.
Referenced by parallel.parallel_task_helper.ParallelTaskHelper.executeJobs(), and parallel.parallel_task_helper.ParallelTaskHelper.postExecution().
Definition at line 31 of file parallel_task_helper.py.
Definition at line 29 of file parallel_task_helper.py.
Definition at line 23 of file parallel_task_helper.py.
Referenced by task_partition.PartitionHelper.__generateFilter(), task_partition.PartitionHelper._createCalMSCommand(), task_partition.PartitionHelper._createDefaultSeparationCommands(), task_partition.PartitionHelper._createPrimarySplitCommand(), task_partition.PartitionHelper._createScanSeparationCommands(), task_partition.PartitionHelper._createSPWSeparationCommands(), task_partition.PartitionHelper._getCalibrationFilter(), task_partition.PartitionHelper._selectMS(), parallel.parallel_task_helper.ParallelTaskHelper.generateJobs(), task_partition.PartitionHelper.generateJobs(), parallel.parallel_task_helper.ParallelTaskHelper.go(), task_partition.PartitionHelper.initialize(), parallel.parallel_task_helper.ParallelTaskHelper.initialize(), task_partition.PartitionHelper.postExecution(), tests.test_partitionHelper.PartitionHelperTest.testDefaultSeparationCommands(), and tests.test_partitionHelper.PartitionHelperTest.testSpwSeparationCommands().
Definition at line 24 of file parallel_task_helper.py.
Referenced by parallel.parallel_task_helper.ParallelTaskHelper.generateJobs(), and parallel.parallel_task_helper.ParallelTaskHelper.override_arg().
Definition at line 32 of file parallel_task_helper.py.
Referenced by parallel.parallel_task_helper.ParallelTaskHelper.executeJobs(), and parallel.parallel_task_helper.ParallelTaskHelper.postExecution().
Definition at line 36 of file parallel_task_helper.py.
Referenced by parallel.parallel_task_helper.ParallelTaskHelper.postExecution().
Definition at line 26 of file parallel_task_helper.py.
Referenced by tests.test_partitionHelper.PartitionHelperTest.checkCommandList(), and parallel.parallel_task_helper.ParallelTaskHelper.executeJobs().
Definition at line 27 of file parallel_task_helper.py.
Referenced by parallel.parallel_task_helper.ParallelTaskHelper.executeJobs().
Reimplemented in task_partition.PartitionHelper.
Definition at line 38 of file parallel_task_helper.py.
Referenced by parallel.parallel_task_helper.ParallelTaskHelper.executeJobs(), parallel.parallel_task_helper.ParallelTaskHelper.postExecution(), and task_partition.PartitionHelper.postExecution().
Definition at line 25 of file parallel_task_helper.py.
Referenced by task_partition.PartitionHelper._createCalMSCommand(), task_partition.PartitionHelper._createDefaultSeparationCommands(), task_partition.PartitionHelper._createPrimarySplitCommand(), task_partition.PartitionHelper._createScanSeparationCommands(), task_partition.PartitionHelper._createSPWSeparationCommands(), parallel.parallel_task_helper.ParallelTaskHelper.generateJobs(), parallel.parallel_task_helper.ParallelTaskHelper.go(), and parallel.parallel_task_helper.ParallelTaskHelper.postExecution().