casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes
parallel.parallel_task_helper.ParallelTaskHelper Class Reference
Inheritance diagram for parallel.parallel_task_helper.ParallelTaskHelper:
task_partition.PartitionHelper tests.test_partitionHelper.PartitionHelperTest

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

def parallel.parallel_task_helper.ParallelTaskHelper.__init__ (   self,
  task_name,
  args = {} 
)

Definition at line 22 of file parallel_task_helper.py.


Member Function Documentation

# 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 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.

Definition at line 193 of file parallel_task_helper.py.

References taskinit.mstool.

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.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 
)

Member Data Documentation

Definition at line 31 of file parallel_task_helper.py.

Definition at line 29 of file parallel_task_helper.py.


The documentation for this class was generated from the following file: