feat(precheck): initial IHP support

still missing the IHP Klayout DRC deck
This commit is contained in:
Uri Shaked
2025-04-16 08:28:51 +03:00
parent 49b57ea0bb
commit c350c2ed16
5 changed files with 532 additions and 58 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ class LayerInfo:
return f"LayerInfo(name={self.name}, source={self.source}, layer={self.layer}, data_type={self.data_type})"
def parse_lyp_layers(lyp_file: str):
def parse_lyp_layers(lyp_file: str, only_valid: bool = True):
with open(lyp_file) as f:
xml_content = f.read()
root = ET.fromstring(xml_content)
@@ -25,7 +25,7 @@ def parse_lyp_layers(lyp_file: str):
source = properties.find("source")
valid = properties.find("valid")
if valid is not None and valid.text == "false":
if only_valid and valid is not None and valid.text == "false":
continue
if (