All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions | Variables
CheckPhotonLibraryJobs Namespace Reference

Classes

class  CachedValue
 
class  JobIDclass
 
class  FileListIterator
 
class  JobChecker
 

Functions

def removeSuffixes
 

Variables

string __doc__
 
string __version__ = "2.1"
 
tuple Parser = argparse.ArgumentParser(description=__doc__)
 
string help = "if specified, process at most this number of jobs"
 
tuple jobListGroup = Parser.add_argument_group("Job lists")
 
string default = "name of the list to be created with all good jobs"
 
string action = "store_true"
 
tuple args = Parser.parse_args()
 
tuple jobChecker
 

Function Documentation

def CheckPhotonLibraryJobs.removeSuffixes (   s)

Definition at line 25 of file CheckPhotonLibraryJobs.py.

25 
26  s: "string to be processed",
27  *suffixes: "strings to be removed from the end of `s`; better longer first",
28  ) -> "a copy of `s` with all suffixes removed from its end":
29  while True:
30  for suffix in suffixes:
31  if not s.endswith(suffix): continue
32  s = s[:-len(suffix)]
33  break # bash would say `continue 2`
34  else: return s
35  # while
36 # removeSuffixes()
37 

Variable Documentation

string CheckPhotonLibraryJobs.__doc__
Initial value:
1 = """Checks the output of the jobs specified by their XML configuration file.
2 
3 The jobs must have been submitted by `project.py` and must have completed already.
4 
5 """

Definition at line 11 of file CheckPhotonLibraryJobs.py.

string CheckPhotonLibraryJobs.__version__ = "2.1"

Definition at line 16 of file CheckPhotonLibraryJobs.py.

string CheckPhotonLibraryJobs.action = "store_true"

Definition at line 488 of file CheckPhotonLibraryJobs.py.

tuple CheckPhotonLibraryJobs.args = Parser.parse_args()

Definition at line 503 of file CheckPhotonLibraryJobs.py.

string CheckPhotonLibraryJobs.default = "name of the list to be created with all good jobs"

Definition at line 481 of file CheckPhotonLibraryJobs.py.

string CheckPhotonLibraryJobs.help = "if specified, process at most this number of jobs"

Definition at line 470 of file CheckPhotonLibraryJobs.py.

tuple CheckPhotonLibraryJobs.jobChecker
Initial value:
2  args.XMLfileList,
3  goodList=(False if args.NoGoodJobList else args.GoodJobList),
4  badList=(False if args.NoBadJobList else args.BadJobList),
5  fileList=(False if args.NoOutputFileList else args.OutputFileList),
6  skipKnownGoodJobs=args.SkipGoodJobs,
7  skipKnownBadJobs=args.SkipBadJobs,
8  )

Definition at line 512 of file CheckPhotonLibraryJobs.py.

tuple CheckPhotonLibraryJobs.jobListGroup = Parser.add_argument_group("Job lists")

Definition at line 478 of file CheckPhotonLibraryJobs.py.

tuple CheckPhotonLibraryJobs.Parser = argparse.ArgumentParser(description=__doc__)

Definition at line 464 of file CheckPhotonLibraryJobs.py.