Functions | Variables
build_template Namespace Reference

Functions

def build ()
 
def compile ()
 
def clean ()
 
def rebuild ()
 

Variables

string build_dir = 'merged_predictions/'
 

Detailed Description

Example build script using fabricate and hadd_cafana

Calls functions from the build_tools module which run hadd_cafana commands
through fabricate, in the correct order.

Function Documentation

def build_template.build ( )

Definition at line 24 of file build_template.py.

References compile().

Referenced by rebuild().

24 def build():
25  if not os.path.isdir(build_dir):
26  os.mkdir(build_dir)
27  compile()
28  print 'Done!'
29 
30 
def build_template.clean ( )

Definition at line 36 of file build_template.py.

References fabricate.autoclean().

Referenced by rebuild().

36 def clean():
37  autoclean()
38 
39 
def autoclean()
Definition: fabricate.py:1442
def build_template.compile ( )

Definition at line 31 of file build_template.py.

References build_tools.merge_all().

Referenced by build().

31 def compile():
32  # Call merge_all to merge everything in order, for a given directory
33  merge_all(source_dir, build_dir)
34 
35 
def merge_all(source_dir, build_dir)
Definition: build_tools.py:29
def build_template.rebuild ( )

Definition at line 40 of file build_template.py.

References build(), clean(), and BlessedPlots.main().

40 def rebuild():
41  clean()
42  build()
43 
44 
45 main() # built in fabricate function

Variable Documentation

string build_template.build_dir = 'merged_predictions/'

Definition at line 21 of file build_template.py.