CHEM :: Common :: Util :: ProgressDots :: Class ProgressDots
[hide private]
[frames] | no frames]

Class ProgressDots



Clone of OEChem OEDots class, to add progress indicator to long processes, without actually requiring OEChem as a dependency.

Instance Methods [hide private]
 
__init__(self, big=1000, small=25, name='items', stream=sys.stderr)
Constructor.
 
Update(self, step=1)
Update the progress counter by an increment of size step (default=1).
 
GetCounts(self)
Get the current count of updates
 
GetTime(self)
Get the time (in seconds) since the progressindicator was created.
 
PrintStatus(self)
Method Details [hide private]

__init__(self, big=1000, small=25, name='items', stream=sys.stderr)
(Constructor)

 
Constructor. big - Number of updates before completing a progress output line. small - Number of updates before outputting a progress dot. name - Name of the items being processed. stream - Stream to send progress output to. Defaults to sys.stderr.

Update(self, step=1)

 
Update the progress counter by an increment of size step (default=1). Well output progress dots or line information to the stream if reached an appropriate big or small increment.