Package npsgd :: Module standalone_task :: Class StandaloneTask
[hide private]
[frames] | no frames]

Class StandaloneTask

source code

          object --+    
                   |    
model_task.ModelTask --+
                       |
                      StandaloneTask

Abstract base task for standalone models.

This class is meant to be the superclass of the user's various standalone models. These will generally compiled models, but can include anything that needs to be launched in a subprocess

Instance Methods [hide private]
 
executableParameters(self)
Returns parameters to the underlying executable as a Python list.
source code
 
runModel(self)
Spawns a python subprocess of 'executable' class variable and executes.
source code

Inherited from model_task.ModelTask: __init__, asDict, createWorkingDirectory, failureEmail, generatePDF, getAttachments, latexBody, latexParameterTable, parameterType, prepareExecution, prepareGraphs, resultsEmail, run, textParameterTable

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from model_task.ModelTask: fromDict

Class Variables [hide private]
  abstractModel = 'StandaloneTask'
  executable = 'ls'

Inherited from model_task.ModelTask: attachments, short_name, subtitle

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

runModel(self)

source code 

Spawns a python subprocess of 'executable' class variable and executes.

This method is meant to run standalone binaries of models. It stores the stdout/stderr in class variables called self.stdout and self.stderr.

Overrides: model_task.ModelTask.runModel