Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
graph import errors
Browse files Browse the repository at this point in the history
  • Loading branch information
iopapamanoglou committed Aug 27, 2024
1 parent b25ddb1 commit 39d8ded
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/faebryk/exporters/esphome/esphome.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import yaml

from faebryk.core.core import Graph, Parameter
from faebryk.core.graphinterface import Graph, Parameter
from faebryk.core.util import get_all_nodes_with_trait
from faebryk.library.Constant import Constant
from faebryk.library.has_esphome_config import has_esphome_config
Expand Down
2 changes: 1 addition & 1 deletion src/faebryk/exporters/netlist/netlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import logging
from dataclasses import dataclass

from faebryk.core.core import Graph
from faebryk.core.graphinterface import Graph
from faebryk.core.util import get_all_nodes_of_type, get_all_nodes_with_trait
from faebryk.library.has_footprint import has_footprint
from faebryk.library.has_overriden_name import has_overriden_name
Expand Down
2 changes: 1 addition & 1 deletion src/faebryk/libs/app/designators.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pathlib import Path
from typing import cast

from faebryk.core.core import Graph
from faebryk.core.graphinterface import Graph
from faebryk.core.util import (
get_all_nodes_by_names,
get_all_nodes_with_trait,
Expand Down
4 changes: 3 additions & 1 deletion src/faebryk/libs/app/erc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
import logging
from typing import Callable, Iterable, Sequence

from faebryk.core.core import Graph, Module, ModuleInterface
from faebryk.core.graphinterface import Graph
from faebryk.core.module import Module
from faebryk.core.moduleinterface import ModuleInterface
from faebryk.core.util import (
get_all_nodes_of_type,
get_all_nodes_of_types,
Expand Down
13 changes: 1 addition & 12 deletions src/faebryk/libs/examples/buildutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import faebryk.libs.picker.lcsc as lcsc
from faebryk.core.module import Module
from faebryk.core.util import get_all_modules
from faebryk.exporters.visualize.graph import render_sidebyside
from faebryk.libs.app.checks import run_checks
from faebryk.libs.app.parameters import replace_tbd_with_any
from faebryk.libs.app.pcb import apply_design
Expand Down Expand Up @@ -84,14 +83,4 @@ def apply_design_to_pcb(m: Module):


def export_graph(g, show):
plt = render_sidebyside(g)

GRAPH_OUT.parent.mkdir(
parents=True,
exist_ok=True,
)
logging.info("Writing Experiment graph to {}".format(GRAPH_OUT.absolute()))
plt.savefig(GRAPH_OUT, format="png", bbox_inches="tight")

if show:
plt.show()
raise NotImplementedError()
6 changes: 3 additions & 3 deletions test/core/test_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from typing import Callable

import faebryk.core.util as core_util
from faebryk.core.core import GraphInterface, Module, ModuleInterface
from faebryk.core.graphinterface import GraphInterface, Module, ModuleInterface
from faebryk.library.Resistor import Resistor
from faebryk.libs.util import times

Expand Down Expand Up @@ -177,7 +177,7 @@ def rec_connect(gs_sub: list[GraphInterface]):
# self.assertLess(timings.times["connect"], 1200e-3)
print(timings)
print(f"----> Avg/connect: {per_connect*1e6:.2f} us")
from faebryk.core.core import GraphImpl
from faebryk.core.graphinterface import GraphImpl

print("Counter", GraphImpl.counter, GraphImpl.counter - count)

Expand All @@ -203,7 +203,7 @@ def test_graph_merge_it(self):
print(timings)
print(f"----> Avg/connect: {per_connect*1e6:.2f} us")

from faebryk.core.core import GraphImpl
from faebryk.core.graphinterface import GraphImpl

print("Counter", GraphImpl.counter, GraphImpl.counter - count)

Expand Down

0 comments on commit 39d8ded

Please sign in to comment.