Skip to content

Commit

Permalink
Let's try this
Browse files Browse the repository at this point in the history
  • Loading branch information
daquintero committed Nov 12, 2024
1 parent d5b3175 commit f2f3566
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 9 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docs/examples/03b_optical_function_verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,10 +421,10 @@
)

# +
chain_3_mode_lattice_circuit_netlist = (
chain_3_mode_lattice_circuit.get_netlist_recursive(allow_multiple=True)
chain_3_mode_lattice_circuit_netlist = piel.tools.gdsfactory.get_netlist_recursive(
chain_3_mode_lattice_circuit, allow_multiple=True
)
top_level_name = (chain_3_mode_lattice_circuit.get_netlist())["name"]
top_level_name = piel.tools.gdsfactory.get_netlist(chain_3_mode_lattice_circuit)["name"]


recursive_composed_required_models = sax.get_required_circuit_models(
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/false_transition.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions piel/tools/gdsfactory/netlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ def get_input_ports_index(
return ports_index_order


def get_netlist(**kwargs):
def get_netlist(*args, **kwargs):
from gdsfactory.get_netlist import get_netlist as get_netlist_raw

return get_netlist_raw(**kwargs, extend_recursive_port_names=True)
return get_netlist_raw(*args, **kwargs, extend_recursive_port_names=True)


def get_netlist_recursive(**kwargs):
def get_netlist_recursive(*args, **kwargs):
from gdsfactory.get_netlist import (
get_netlist_recursive as get_netlist_recursive_raw,
)

return get_netlist_recursive_raw(**kwargs, get_netlist_func=get_netlist)
return get_netlist_recursive_raw(*args, **kwargs, get_netlist_func=get_netlist)
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ markers = [

[tool.coverage.run]
branch = true
parallel = true
source = ["piel/"]
omit = [
"docs/examples/*",
Expand All @@ -212,5 +213,6 @@ sort = "-cover"
show_missing = true
omit = [
"docs/examples/*",
"*/tests/*",
"/nix/*"
]
12 changes: 11 additions & 1 deletion scripts/test_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,15 @@ for example in "${examples[@]}"; do
cd - > /dev/null
done

# echo "Coverage Data Debug Before"
# coverage debug data # See what data files and paths are included
# coverage debug config
# coverage debug premain

# coverage combine

# echo "Coverage Data Debug After"
# coverage debug data # See what data files and paths are included

# Generate the coverage report
coverage report -m
# coverage report -m

0 comments on commit f2f3566

Please sign in to comment.