mirror of https://github.com/KLayout/klayout.git
Fixed test fails: infinite recursion due to duplicate alias on -e following -ne
This commit is contained in:
parent
ac57d0e473
commit
2e4c5a535a
|
|
@ -84,16 +84,12 @@ class MyNetlistSpiceReaderDelegate2 < MyNetlistSpiceReaderDelegate
|
||||||
netlist.description = "Read by MyDelegate2 (sucessfully)"
|
netlist.description = "Read by MyDelegate2 (sucessfully)"
|
||||||
end
|
end
|
||||||
|
|
||||||
alias translate_net_name_org translate_net_name
|
|
||||||
|
|
||||||
def translate_net_name(n)
|
def translate_net_name(n)
|
||||||
return n == "VDD" ? "VXX" : translate_net_name_org(n)
|
return n == "VDD" ? "VXX" : super
|
||||||
end
|
end
|
||||||
|
|
||||||
alias parse_element_org parse_element
|
|
||||||
|
|
||||||
def parse_element(s, element)
|
def parse_element(s, element)
|
||||||
data = parse_element_org(s, element)
|
data = super
|
||||||
if element == "R"
|
if element == "R"
|
||||||
data.model_name = "WIDERSTAND"
|
data.model_name = "WIDERSTAND"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue