areaDetector  3-5-0
EPICS areaDetector framework
Namespaces | Functions | Variables
makeDbAndEdl.py File Reference

Namespaces

 makeDbAndEdl
 

Functions

def makeDbAndEdl.elements (node)
 
def makeDbAndEdl.getText (node)
 
def makeDbAndEdl.handle_node (node)
 
def makeDbAndEdl.handle_category (category)
 
def makeDbAndEdl.quoteString (string)
 
def makeDbAndEdl.make_box ()
 
def makeDbAndEdl.make_description ()
 
def makeDbAndEdl.make_label ()
 
def makeDbAndEdl.make_ro ()
 
def makeDbAndEdl.make_demand ()
 
def makeDbAndEdl.make_rbv ()
 
def makeDbAndEdl.make_menu ()
 
def makeDbAndEdl.make_cmd ()
 

Variables

 makeDbAndEdl.parser = OptionParser()
 
 makeDbAndEdl.options
 
 makeDbAndEdl.args
 
 makeDbAndEdl.genicam_lines = open(args[0]).readlines()
 
 makeDbAndEdl.start_line = min(i for i in range(2) if genicam_lines[i].lstrip().startswith("<"))
 
 makeDbAndEdl.xml_root = parseString("".join(genicam_lines[start_line:]).lstrip())
 
 makeDbAndEdl.camera_name = args[1]
 
 makeDbAndEdl.prefix = os.path.abspath(os.path.join(os.path.dirname(__file__),".."))
 
 makeDbAndEdl.db_filename = os.path.join(prefix, "Db", camera_name + ".template")
 
 makeDbAndEdl.edl_filename = os.path.join(prefix, "op", "edl", camera_name + ".edl")
 
 makeDbAndEdl.edl_more_filename = os.path.join(prefix, "op", "edl", camera_name + "-features.edl")
 
dictionary makeDbAndEdl.lookup = {}
 
dictionary makeDbAndEdl.records = {}
 
list makeDbAndEdl.categories = []
 
list makeDbAndEdl.structure = []
 
list makeDbAndEdl.doneNodes = []
 
 makeDbAndEdl.db_file = open(db_filename, "w")
 
 makeDbAndEdl.stdout = sys.stdout
 
string makeDbAndEdl.a_autosaveFields = 'DESC LOLO LOW HIGH HIHI LLSV LSV HSV HHSV EGU TSE PREC'
 
string makeDbAndEdl.b_autosaveFields = 'DESC ZSV OSV TSE'
 
string makeDbAndEdl.long_autosaveFields = 'DESC LOLO LOW HIGH HIHI LLSV LSV HSV HHSV EGU TSE'
 
string makeDbAndEdl.mbb_autosaveFields = 'DESC ZRSV ONSV TWSV THSV FRSV FVSV SXSV SVSV EISV NISV TESV ELSV TVSV TTSV FTSV FFSV TSE'
 
string makeDbAndEdl.string_autosaveFields = 'DESC TSE'
 
 makeDbAndEdl.nodeName = str(node.getAttribute("Name"))
 
bool makeDbAndEdl.ro = False
 
string makeDbAndEdl.enumerations = ""
 
int makeDbAndEdl.i = 0
 
string makeDbAndEdl.defaultVal = "0"
 
list makeDbAndEdl.epicsId = ["ZR", "ON", "TW", "TH", "FR", "FV", "SX", "SV", "EI", "NI", "TE", "EL", "TV", "TT", "FT", "FF"]
 
 makeDbAndEdl.name = str(n.getAttribute("Name"))
 
list makeDbAndEdl.value = [x for x in elements(n) if str(x.nodeName) == "Value"]
 
 makeDbAndEdl.edl_file = open(edl_more_filename, "w")
 
int makeDbAndEdl.w = 260
 
int makeDbAndEdl.h = 40
 
int makeDbAndEdl.x = 5
 
int makeDbAndEdl.y = 50
 
string makeDbAndEdl.text = ""
 
string makeDbAndEdl.defFontClass = "arial"
 
int makeDbAndEdl.defFgColorCtrl = 25
 
int makeDbAndEdl.defBgColorCtrl = 3
 
int makeDbAndEdl.defFgColorMon = 16
 
int makeDbAndEdl.defBgColorMon = 10
 
int makeDbAndEdl.boxh = len(nodes) * 25 + 5
 
int makeDbAndEdl.laby = y - 10
 
dictionary makeDbAndEdl.recordName = records[nodeName]
 
string makeDbAndEdl.desc = ""
 
list makeDbAndEdl.descs = ["%s: "% nodeName, "", "", "", "", ""]
 
int makeDbAndEdl.nx = x + 5
 
int makeDbAndEdl.exitX = w - 100
 
int makeDbAndEdl.exitY = h - min(30, h - y)