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

Classes

class  SampleInfo
 
class  DimensionQueryMaker
 
class  SampleBrowser
 
class  SampleProcessClass
 

Functions

def collapseList
 

Variables

string __doc__ = """Manages SAM definitions for ICARUS data run."""
 
string __author__ = "Gianluca Petrillo (petrillo@slac.stanford.edu)"
 
tuple __date__ = time.strptime("July 7, 2021", "%B %d, %Y")
 
string __version__ = "1.0"
 
string ExperimentName = "ICARUS"
 
list DefaultStages = [ 'raw', 'stage0', 'stage1', ]
 
dictionary StageDimensions
 
 AllowAllRuns = False
 
tuple parser = argparse.ArgumentParser(description=__doc__)
 
tuple SampleGroup = parser.add_argument_group(title="Sample selection")
 
string help = "stages to include {DefaultStages}"
 
string action = "store_true"
 
tuple ActionGroup = parser.add_argument_group(title="Actions")
 
tuple GeneralOptGroup = parser.add_argument_group(title="General options")
 
string version = f"%(prog)s v{__version__} ({time.asctime(__date__)})"
 
tuple args = parser.parse_args()
 
tuple iterateSamples = SampleBrowser(samweb)
 
tuple processInfo
 
tuple baseSampleInfo
 

Function Documentation

def manageDataRunDefinitions.collapseList (   l)

Definition at line 519 of file manageDataRunDefinitions.py.

520 def collapseList(l):
521  try:
522  if not isinstance(l, str) and len(l) == 1: return next(iter(l))
523  except TypeError: pass
524  return l
525 # collapseList()
526 

Variable Documentation

string manageDataRunDefinitions.__author__ = "Gianluca Petrillo (petrillo@slac.stanford.edu)"

Definition at line 7 of file manageDataRunDefinitions.py.

tuple manageDataRunDefinitions.__date__ = time.strptime("July 7, 2021", "%B %d, %Y")

Definition at line 8 of file manageDataRunDefinitions.py.

string manageDataRunDefinitions.__doc__ = """Manages SAM definitions for ICARUS data run."""

Definition at line 6 of file manageDataRunDefinitions.py.

string manageDataRunDefinitions.__version__ = "1.0"

Definition at line 9 of file manageDataRunDefinitions.py.

string manageDataRunDefinitions.action = "store_true"

Definition at line 542 of file manageDataRunDefinitions.py.

tuple manageDataRunDefinitions.ActionGroup = parser.add_argument_group(title="Actions")

Definition at line 544 of file manageDataRunDefinitions.py.

manageDataRunDefinitions.AllowAllRuns = False

Definition at line 27 of file manageDataRunDefinitions.py.

tuple manageDataRunDefinitions.args = parser.parse_args()

Definition at line 571 of file manageDataRunDefinitions.py.

tuple manageDataRunDefinitions.baseSampleInfo
Initial value:
2  run=collapseList(args.runs if args.runs else None),
3  stage=collapseList(args.stage),
4  stream=collapseList(args.stream), # None means any
5  projectVersion=collapseList(args.prjversion), # None for autodetect
6  )

Definition at line 607 of file manageDataRunDefinitions.py.

list manageDataRunDefinitions.DefaultStages = [ 'raw', 'stage0', 'stage1', ]

Definition at line 17 of file manageDataRunDefinitions.py.

string manageDataRunDefinitions.ExperimentName = "ICARUS"

Definition at line 16 of file manageDataRunDefinitions.py.

tuple manageDataRunDefinitions.GeneralOptGroup = parser.add_argument_group(title="General options")

Definition at line 558 of file manageDataRunDefinitions.py.

string manageDataRunDefinitions.help = "stages to include {DefaultStages}"

Definition at line 536 of file manageDataRunDefinitions.py.

tuple manageDataRunDefinitions.iterateSamples = SampleBrowser(samweb)

Definition at line 600 of file manageDataRunDefinitions.py.

tuple manageDataRunDefinitions.parser = argparse.ArgumentParser(description=__doc__)

Definition at line 531 of file manageDataRunDefinitions.py.

tuple manageDataRunDefinitions.processInfo
Initial value:
2  create=args.create, query=args.query, printDefs=args.defname,
3  describe=args.describe, check=args.check, delete=args.delete,
4  fake=args.fake, force=args.force, prependUser=not args.globalDef
5  )

Definition at line 601 of file manageDataRunDefinitions.py.

tuple manageDataRunDefinitions.SampleGroup = parser.add_argument_group(title="Sample selection")

Definition at line 533 of file manageDataRunDefinitions.py.

dictionary manageDataRunDefinitions.StageDimensions
Initial value:
1 = {
2  'raw': "data_tier raw",
3  'stage0': "icarus_project.stage stage0",
4  'stage1': "icarus_project.stage stage1",
5 }

Definition at line 19 of file manageDataRunDefinitions.py.

string manageDataRunDefinitions.version = f"%(prog)s v{__version__} ({time.asctime(__date__)})"

Definition at line 568 of file manageDataRunDefinitions.py.