Package nMOLDYN :: Package Core :: Module IOFiles :: Class TemporaryFile
[hide private]
[frames] | no frames]

Class TemporaryFile

source code

Creates a temporary file used to monitor (progress, start, end ...) an analysis.

Instance Methods [hide private]
 
__init__(self, module='', statusBar=None)
The constructor.
source code
 
update(self, norm)
Updates the temporary file by writing the percentage of the job that has been done.
source code
 
close(self)
Closes and removes the temporary file.
source code
Method Details [hide private]

__init__(self, module='', statusBar=None)
(Constructor)

source code 

The constructor.

Parameters:
  • module (string.) - the name of the analysis the temporary file will be attached to.
  • statusBar (instance of nMOLDYN.GUI.Widgets.StatusBar) - if not None, an instance of nMOLDYN.GUI.Widgets.StatusBar. The status bar, attached to the analysis, to update.

update(self, norm)

source code 

Updates the temporary file by writing the percentage of the job that has been done.

Parameters:
  • norm (integer.) - the number of steps of the outer loop of the analysis to monitor.