Esempio n. 1
0
def get_dom(filename):
    if filename not in _cache:
        design = get_design(filename)
        eaglexml = EagleXML()
        for ci in design.component_instances:
            eaglexml.inst2cpt[ci.instance_id] = ci.library_id
        _cache[filename] = eaglexml.make_dom(design)
    return _cache[filename]
def get_dom(filename):
    if filename not in _cache:
        design = get_design(filename)
        eaglexml = EagleXML()
        for ci in design.component_instances:
            eaglexml.inst2cpt[ci.instance_id] = ci.library_id
        _cache[filename] = eaglexml.make_dom(design)
    return _cache[filename]
Esempio n. 3
0
 def wrapper(self):
     """ Parse file then run test. """
     self.design = get_design(filename)
     self.dom = get_dom(filename)
     test_method(self)
 def wrapper(self):
     """ Parse file then run test. """
     self.design = get_design(filename)
     self.dom = get_dom(filename)
     test_method(self)
def get_dom(filename):
    if filename not in _cache:
        design = get_design(filename)
        _cache[filename] = EagleXML().make_dom(design)
    return _cache[filename]