PbsStats to shell user Kantale

From PyPedia
Revision as of 21:15, 29 February 2012 by Kantale (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Documentation

Converts a dictionary with PBS execution options to a PBS script

Parameters

<inputs>
</inputs>

Return

See also

Code

def PbsStats_to_shell_user_Kantale(pbsStats = None):
	shell_script = "#!/bin/bash\n"

	if pbsStats.has_key("queue"): shell_script += "#PBS -q %s\n" % (pbsStats["queue"])
	if pbsStats.has_key("nodes") and pbsStats.has_key("ppn"): shell_script += "#PBS -l nodes=%s:ppn=%s\n" % (pbsStats["nodes"], pbsStats["ppn"])
	if pbsStats.has_key("email"):
		shell_script += "#PBS -M %s\n" % (pbsStats["email"])
		shell_script += "#PBS -m ae\n"
	if pbsStats.has_key("walltime"): shell_script += "#PBS -l walltime=%s\n" % (pbsStats["walltime"])
	if pbsStats.has_key("mem"): shell_script += "#PBS -l mem=%s\n" % (pbsStats["mem"])
	if pbsStats.has_key("error"): shell_script += "#PBS -e %s\n" % (pbsStats["error"])
	if pbsStats.has_key("output"): shell_script += "#PBS -o %s\n" % (pbsStats["output"])

	shell_script += "\n"

	return shell_script

Unit Tests

def uni1():
	return True

Development Code

def PbsStats_to_shell_user_Kantale():
	pass

Permissions

Documentation Permissions

Kantale

Code Permissions

Kantale

Unit Tests Permissions

Kantale

Permissions Permissions

Kantale

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox