Functions | Variables
publish_reco_validation Namespace Reference

Functions

def make_yaml ()
 

Variables

 parser = argparse.ArgumentParser()
 
 type
 
 str
 
 help
 
 default
 
 dest
 
 action
 
 overwrite = args.overwrite
 
 cleanup = args.cleanup
 
 args = parser.parse_args()
 
 config_file = args.config_file
 
list root_files = [x.strip() for x in parser.get('cernroot', 'filenames').split(',')]
 
 output_dir = parser.get('output_dir', 'path')
 
 validation_name = parser.get('validation_name', 'name')
 
 project_dir = os.path.join(output_dir, validation_name.replace(' ', '\ '))
 
string cmd = '. ~/.bashrc;setup_nova;sh $SRT_PUBLIC_CONTEXT/Validation/generic/run_validation.sh validation_config.yaml'
 

Function Documentation

def publish_reco_validation.make_yaml ( )

Definition at line 11 of file publish_reco_validation.py.

References open(), and PandAna.Demos.demo1.range.

11 def make_yaml():
12  with open('validation_config.yaml','w') as outf:
13  outf.write('{\n')
14  outf.write(' "validation_name": "'+validation_name+'",\n')
15  outf.write(' "histogram_topdirs": {\n')
16  for i in range(0, len(root_files)):
17  subdir_name = os.path.basename(root_files[i].rstrip('.root'))
18  outf.write(' "'+subdir_name+'": "'+root_files[i])
19  if i != len(root_files) - 1: outf.write('",\n')
20  else: outf.write('"\n')
21  outf.write(' },\n')
22  outf.write(' "output_dir": "'+output_dir+'"\n')
23  outf.write('}\n')
24 
25 #
26 # command line argument parsing
27 #
procfile open("FD_BRL_v0.txt")

Variable Documentation

publish_reco_validation.action

Definition at line 30 of file publish_reco_validation.py.

publish_reco_validation.args = parser.parse_args()

Definition at line 36 of file publish_reco_validation.py.

publish_reco_validation.cleanup = args.cleanup

Definition at line 35 of file publish_reco_validation.py.

string publish_reco_validation.cmd = '. ~/.bashrc;setup_nova;sh $SRT_PUBLIC_CONTEXT/Validation/generic/run_validation.sh validation_config.yaml'

Definition at line 64 of file publish_reco_validation.py.

publish_reco_validation.config_file = args.config_file

Definition at line 37 of file publish_reco_validation.py.

publish_reco_validation.default

Definition at line 29 of file publish_reco_validation.py.

publish_reco_validation.dest

Definition at line 30 of file publish_reco_validation.py.

publish_reco_validation.help

Definition at line 29 of file publish_reco_validation.py.

publish_reco_validation.output_dir = parser.get('output_dir', 'path')

Definition at line 47 of file publish_reco_validation.py.

publish_reco_validation.overwrite = args.overwrite
publish_reco_validation.parser = argparse.ArgumentParser()

Definition at line 28 of file publish_reco_validation.py.

publish_reco_validation.project_dir = os.path.join(output_dir, validation_name.replace(' ', '\ '))

Definition at line 50 of file publish_reco_validation.py.

list publish_reco_validation.root_files = [x.strip() for x in parser.get('cernroot', 'filenames').split(',')]

Definition at line 46 of file publish_reco_validation.py.

publish_reco_validation.str

Definition at line 29 of file publish_reco_validation.py.

publish_reco_validation.type

Definition at line 29 of file publish_reco_validation.py.

publish_reco_validation.validation_name = parser.get('validation_name', 'name')

Definition at line 48 of file publish_reco_validation.py.

Referenced by MakeValidation().