Public Member Functions | Public Attributes | List of all members
SortModuleTimes.TabularAlignmentClass.LineNo Class Reference
Inheritance diagram for SortModuleTimes.TabularAlignmentClass.LineNo:
SortModuleTimes.TabularAlignmentClass.LineIdentifierClass

Public Member Functions

def __init__ (self, lineno, success_factor=5.)
 
def matchLine (self, lineno, iLine, rawdata)
 
def __call__ (self, iLine, rawdata)
 
- Public Member Functions inherited from SortModuleTimes.TabularAlignmentClass.LineIdentifierClass
def __init__ (self)
 
def __call__ (self, iLine, rawdata)
 

Public Attributes

 lineno
 
 success_factor
 

Detailed Description

Definition at line 713 of file SortModuleTimes.py.

Constructor & Destructor Documentation

def SortModuleTimes.TabularAlignmentClass.LineNo.__init__ (   self,
  lineno,
  success_factor = 5. 
)

Definition at line 714 of file SortModuleTimes.py.

714  def __init__(self, lineno, success_factor = 5.):
715  TabularAlignmentClass.LineIdentifierClass.__init__(self)
716  if isinstance(lineno, int): self.lineno = [ lineno ]
717  else: self.lineno = lineno
718  self.success_factor = success_factor
def __init__(self, lineno, success_factor=5.)

Member Function Documentation

def SortModuleTimes.TabularAlignmentClass.LineNo.__call__ (   self,
  iLine,
  rawdata 
)

Definition at line 726 of file SortModuleTimes.py.

726  def __call__(self, iLine, rawdata):
727  success = 0.
728  for lineno in self.lineno:
729  if self.matchLine(lineno, iLine, rawdata): success += 1.
730  if success == 0: return None
731  if self.success_factor == 0.: return 1.
732  else: return success * self.success_factor
def matchLine(self, lineno, iLine, rawdata)
def SortModuleTimes.TabularAlignmentClass.LineNo.matchLine (   self,
  lineno,
  iLine,
  rawdata 
)

Definition at line 721 of file SortModuleTimes.py.

721  def matchLine(self, lineno, iLine, rawdata):
722  if lineno < 0: lineno = len(rawdata) + lineno
723  return iLine == lineno
def matchLine(self, lineno, iLine, rawdata)

Member Data Documentation

SortModuleTimes.TabularAlignmentClass.LineNo.lineno

Definition at line 716 of file SortModuleTimes.py.

SortModuleTimes.TabularAlignmentClass.LineNo.success_factor

Definition at line 718 of file SortModuleTimes.py.


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