HPS-MC
job_template.py File Reference

Go to the source code of this file.

Classes

class  JobData
 Very simple key-value object for storing data for each job. More...
 
class  MaxJobsException
 Exception if max jobs are reached. More...
 
class  JobTemplate
 Template engine for transforming input job template into JSON job store. More...
 

Namespaces

 hpsmc.job_template
 
 job_template
 Expand a Jinja job template into a full list of jobs in JSON format.
 

Functions

def basename (path)
 Filter to return a file base name stripped of dir and extension. More...
 
def extension (path)
 Filter to get file extension from string. More...
 
def dirname (path)
 Filter to get dir name from string. More...
 
def pad (num, npad=4)
 Filter to pad a number. More...
 
def uuid ()
 Function to get a uuid within a template. More...
 
def lcio_dumpevent_runnumber (path)
 Filter to get a run number by inspecting first event in slcio file. More...
 
def filenum (path)
 Filter to get the trailing number of a file. More...
 

Variables

 job_tmpl = JobTemplate()