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