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

List of all members.

Public Member Functions

def __init__
def initialize
def generateJobs
def postExecution

Public Attributes

 outputBase
 dataDir
 ptab
 handle the POINTING and SYSCAL tables ##
 stab
 pointingisempty
 makepointinglinks
 pwriteaccess
 syscalisempty
 makesyscallinks
 swriteaccess

Private Member Functions

def _createCalMSCommand
def _createPrimarySplitCommand
def _createScanSeparationCommands
def _createSPWSeparationCommands
def _createDefaultSeparationCommands
def _selectMS
def _getSPWList
def _getScanList
def _getSelectionFilter
def _getCalibrationFilter
def __generateFilter
def __partition

Private Attributes

 _calScanList
 _selectionScanList
 _msTool
 _tbTool
 _sequential_return_list

Detailed Description

Definition at line 12 of file task_partition.py.


Constructor & Destructor Documentation

def task_partition.PartitionHelper.__init__ (   self,
  args = {} 
)

Reimplemented in tests.test_partitionHelper.PartitionHelperTest.

Definition at line 13 of file task_partition.py.


Member Function Documentation

def task_partition.PartitionHelper.__generateFilter (   self,
  selectionPairs 
) [private]
def task_partition.PartitionHelper.__partition (   self,
  lst,
  n 
) [private]
This method will split the list lst into "n" almost equal parts
if lst is none, then we assume an empty list

Definition at line 469 of file task_partition.py.

References task_partition.partition().

Referenced by task_partition.PartitionHelper._createDefaultSeparationCommands(), task_partition.PartitionHelper._createScanSeparationCommands(), and task_partition.PartitionHelper._createSPWSeparationCommands().

This method returns the spectral window list from the current
ms.  Be careful about having selection already done when you call this.

Reimplemented in tests.test_partitionHelper.PartitionHelperTest.

Definition at line 311 of file task_partition.py.

References task_partition.PartitionHelper._msTool, task_partition.PartitionHelper._selectMS(), and tests.test_imcontsub.list.

Referenced by task_partition.PartitionHelper._createDefaultSeparationCommands(), and task_partition.PartitionHelper._createSPWSeparationCommands().

def task_partition.PartitionHelper._selectMS (   self,
  doCalibrationSelection = False 
) [private]
This method will prepare the system for working, in particular:
   * Open the input MS as a msTool
   * Create the Output Directory and the Data subdirectory
   * Populate the global data selection filter (if necessary)

Reimplemented from parallel.parallel_task_helper.ParallelTaskHelper.

Definition at line 20 of file task_partition.py.

References parallel.parallel_task_helper.ParallelTaskHelper._arg.

Referenced by 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().


Member Data Documentation

Reimplemented from parallel.parallel_task_helper.ParallelTaskHelper.

Definition at line 366 of file task_partition.py.

Definition at line 18 of file task_partition.py.

Definition at line 66 of file task_partition.py.

Definition at line 76 of file task_partition.py.

Definition at line 65 of file task_partition.py.

Referenced by task_partition.PartitionHelper.postExecution().

handle the POINTING and SYSCAL tables ##

Definition at line 59 of file task_partition.py.

Referenced by task_partition.PartitionHelper.postExecution().

Definition at line 67 of file task_partition.py.

Referenced by task_partition.PartitionHelper.postExecution().

Definition at line 60 of file task_partition.py.

Referenced by task_partition.PartitionHelper.postExecution().

Definition at line 77 of file task_partition.py.

Referenced by task_partition.PartitionHelper.postExecution().

Definition at line 75 of file task_partition.py.

Referenced by task_partition.PartitionHelper.postExecution().


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