Skip to content

Commit

Permalink
add some testing for the techno.py
Browse files Browse the repository at this point in the history
rename load to load_pdk (more explicit).
  • Loading branch information
Patarimi committed Jan 4, 2024
1 parent f33f27e commit ef7de45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hades/techno.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_layer(techno: str, name: str, datatype: str = "drawing"):
:param datatype:
:return:
"""
process = load(techno)
process = load_pdk(techno)
with open(
join(dirname(__file__), process["base_dir"], process["layermap"]), "r"
) as f:
Expand All @@ -82,7 +82,7 @@ def get_layer(techno: str, name: str, datatype: str = "drawing"):
# for tech files
if re.match(rf"{name}\s*[A-Z,]*", line, re.IGNORECASE) is not None:
res = list(filter(None, line.split()))
return Layer(int(res[2]), int(res[3]))
return int(res[2]), int(res[3])
raise ValueError(f"{name} not found in file {techno}")


Expand Down

0 comments on commit ef7de45

Please sign in to comment.