Skip to content

Commit

Permalink
Merge branch 'main' into fix_flatten
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab authored Jan 1, 2025
2 parents 0b2d856 + eccd34a commit d95d7f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ repos:
additional_dependencies:
- tomli
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.5.11
rev: 0.5.13
hooks:
- id: uv-lock
4 changes: 3 additions & 1 deletion gplugins/klayout/netlist_spice_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def wants_subcircuit(self, name: str):
@override
def parse_element(self, s: str, element: str) -> kdb.ParseElementData:
# Allow Calibre-style model name given as `$[model_name]` by removing the brackets
s = re.sub(r"\$\[([^\]]+)\]", r"\1", s)
# This is used for resistors and capacitors
if element != "X":
s = re.sub(r"\$\[([^\]]+)\]", r"\1", s)

x_value, y_value = None, None
if "$" in s:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ klayout = [
"vlsirtools"
]
luminescent = [
"luminescent~=0.2.12",
"luminescent>=0.2.12,<0.4.0",
"sortedcontainers"
]
maintainer = [
Expand Down

0 comments on commit d95d7f6

Please sign in to comment.