Package schrodinger :: Package ui :: Package qt :: Module appframework :: Class StartDialogParams
[hide private]
[frames] | no frames]

Class StartDialogParams

object --+
         |
        StartDialogParams

A collection of parameter values from the StartDialog class.

Instance Methods [hide private]
 
__init__(self)
Initialize.
list
commandLineArgs(self, include_njobs=True, include_mpi=True, add_cpus=True)
Convert this set of start dialog parameters into the canonical jobcontrol command line argument list.
 
commandLineOptions(self)
Convert this set of start dialog parameters into the canonical jobcontrol command line options.
list
formJaguarCPUFlags(self)
Determine the command line flags as requested by the user if mpicpus=True or cpus=True was used in creating the dialog
 
update(self, params)
Update the param's attributes based on the given dictionary.

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

 

Initialize. The defaults are used for options that were not requested njobs is not currently used as there is no uniform way to set it

Overrides: object.__init__

commandLineArgs(self, include_njobs=True, include_mpi=True, add_cpus=True)

 

Convert this set of start dialog parameters into the canonical jobcontrol command line argument list.

Parameters:
  • include_mpi (bool) - If True and mpicpus=True was given as a dialog initialization parameter, include the command line arguments -PARALLEL or -OMPI & -TPP set to user requested values
Returns: list
list of job control command line flags

commandLineOptions(self)

 

Convert this set of start dialog parameters into the canonical jobcontrol command line options. NOTE: Does NOT export NJOBS for backward compatability.

formJaguarCPUFlags(self)

 

Determine the command line flags as requested by the user if mpicpus=True or cpus=True was used in creating the dialog

Returns: list
Empty if mpicpus or cpus was not True, contains -PARALLEL flag if mpicpus was not True or user did not specify threads, or -OMPI & -TPP flags if user specified theads.