areaDetector  3-14
EPICS areaDetector framework
Functions | Variables
makeDbAndEdl Namespace Reference

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)
 

Function Documentation

◆ elements()

def makeDbAndEdl.elements (   node)

◆ getText()

def makeDbAndEdl.getText (   node)

◆ handle_category()

def makeDbAndEdl.handle_category (   category)

◆ handle_node()

def makeDbAndEdl.handle_node (   node)

◆ make_box()

def makeDbAndEdl.make_box ( )

◆ make_cmd()

def makeDbAndEdl.make_cmd ( )

◆ make_demand()

def makeDbAndEdl.make_demand ( )

◆ make_description()

def makeDbAndEdl.make_description ( )

◆ make_label()

def makeDbAndEdl.make_label ( )

◆ make_menu()

def makeDbAndEdl.make_menu ( )

◆ make_rbv()

def makeDbAndEdl.make_rbv ( )

◆ make_ro()

def makeDbAndEdl.make_ro ( )

◆ quoteString()

def makeDbAndEdl.quoteString (   string)

Variable Documentation

◆ a_autosaveFields

string makeDbAndEdl.a_autosaveFields = 'DESC LOLO LOW HIGH HIHI LLSV LSV HSV HHSV EGU TSE PREC'

◆ args

makeDbAndEdl.args

◆ b_autosaveFields

string makeDbAndEdl.b_autosaveFields = 'DESC ZSV OSV TSE'

◆ boxh

int makeDbAndEdl.boxh = len(nodes) * 25 + 5

◆ camera_name

makeDbAndEdl.camera_name = args[1]

◆ categories

list makeDbAndEdl.categories = []

◆ db_file

makeDbAndEdl.db_file = open(db_filename, "w")

◆ db_filename

makeDbAndEdl.db_filename = os.path.join(prefix, "Db", camera_name + ".template")

◆ defaultVal

def makeDbAndEdl.defaultVal = "0"

◆ defBgColorCtrl

int makeDbAndEdl.defBgColorCtrl = 3

◆ defBgColorMon

int makeDbAndEdl.defBgColorMon = 10

◆ defFgColorCtrl

int makeDbAndEdl.defFgColorCtrl = 25

◆ defFgColorMon

int makeDbAndEdl.defFgColorMon = 16

◆ defFontClass

string makeDbAndEdl.defFontClass = "arial"

◆ desc

def makeDbAndEdl.desc = ""

◆ descs

list makeDbAndEdl.descs = ["%s: "% nodeName, "", "", "", "", ""]

◆ doneNodes

list makeDbAndEdl.doneNodes = []

◆ edl_file

makeDbAndEdl.edl_file = open(edl_more_filename, "w")

◆ edl_filename

makeDbAndEdl.edl_filename = os.path.join(prefix, "op", "edl", camera_name + ".edl")

◆ edl_more_filename

makeDbAndEdl.edl_more_filename = os.path.join(prefix, "op", "edl", camera_name + "-features.edl")

◆ enumerations

string makeDbAndEdl.enumerations = ""

◆ epicsId

list makeDbAndEdl.epicsId = ["ZR", "ON", "TW", "TH", "FR", "FV", "SX", "SV", "EI", "NI", "TE", "EL", "TV", "TT", "FT", "FF"]

◆ exitX

int makeDbAndEdl.exitX = w - 100

◆ exitY

int makeDbAndEdl.exitY = h - min(30, h - y)

◆ genicam_lines

makeDbAndEdl.genicam_lines = open(args[0]).readlines()

◆ h

int makeDbAndEdl.h = 40

◆ i

int makeDbAndEdl.i = 0

◆ laby

int makeDbAndEdl.laby = y - 10

◆ long_autosaveFields

string makeDbAndEdl.long_autosaveFields = 'DESC LOLO LOW HIGH HIHI LLSV LSV HSV HHSV EGU TSE'

◆ lookup

dictionary makeDbAndEdl.lookup = {}

◆ mbb_autosaveFields

string makeDbAndEdl.mbb_autosaveFields = 'DESC ZRSV ONSV TWSV THSV FRSV FVSV SXSV SVSV EISV NISV TESV ELSV TVSV TTSV FTSV FFSV TSE'

◆ name

makeDbAndEdl.name = str(n.getAttribute("Name"))

◆ nodeName

makeDbAndEdl.nodeName = str(node.getAttribute("Name"))

◆ nx

int makeDbAndEdl.nx = x + 5

◆ options

makeDbAndEdl.options

◆ parser

makeDbAndEdl.parser = OptionParser()

◆ prefix

makeDbAndEdl.prefix = os.path.abspath(os.path.join(os.path.dirname(__file__),".."))

◆ recordName

dictionary makeDbAndEdl.recordName = records[nodeName]

◆ records

dictionary makeDbAndEdl.records = {}

◆ ro

bool makeDbAndEdl.ro = False

◆ start_line

makeDbAndEdl.start_line = min(i for i in range(2) if genicam_lines[i].lstrip().startswith("<"))

◆ stdout

makeDbAndEdl.stdout = sys.stdout

◆ string_autosaveFields

string makeDbAndEdl.string_autosaveFields = 'DESC TSE'

◆ structure

list makeDbAndEdl.structure = []

◆ text

string makeDbAndEdl.text = ""

◆ value

list makeDbAndEdl.value = [x for x in elements(n) if str(x.nodeName) == "Value"]

◆ w

int makeDbAndEdl.w = 260

◆ x

int makeDbAndEdl.x = 5

◆ xml_root

makeDbAndEdl.xml_root = parseString("".join(genicam_lines[start_line:]).lstrip())

◆ y

int makeDbAndEdl.y = 50