Back to home page

EIC code displayed by LXR

 
 

    


Warning, /epic/bin/make_detector_parameter_table is written in an unsupported language. File is not indexed.

0001 #!/usr/bin/env python3
0002 
0003 import os
0004 import glob
0005 import toml
0006 import jinja2
0007 
0008 # template
0009 env = jinja2.Environment(
0010     loader = jinja2.FileSystemLoader('templates'),
0011 )
0012 template = env.get_template('DetectorParameterTable.csv.jinja2')
0013 
0014 # detector constants
0015 constants = toml.load('doc/constants.toml')
0016 
0017 # render the template
0018 print(template.render(**constants))