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

Commit

Permalink
Revert noqa deletion and Activestate
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-iteng committed Sep 15, 2024
1 parent 5e443b0 commit 5978ce4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
7 changes: 0 additions & 7 deletions src/faebryk/library/Logic.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
# This file is part of the faebryk project
# SPDX-License-Identifier: MIT

from enum import IntEnum

import faebryk.library._F as F
from faebryk.libs.library import L


class Logic(F.Signal):
class ActiveState(IntEnum):
ACTIVE_HIGH = True
ACTIVE_LOW = False

state = L.f_field(F.Range)(False, True)
active_state = L.f_field(F.Range)(ActiveState.ACTIVE_HIGH, ActiveState.ACTIVE_LOW)

def set(self, on: bool):
self.state.merge(on)
6 changes: 3 additions & 3 deletions src/faebryk/library/RP2040_ReferenceDesign.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@

import logging

import faebryk.library._F as F
import faebryk.library._F as F # noqa: E401
from faebryk.core.module import Module
from faebryk.exporters.pcb.layout.heuristic_decoupling import (
LayoutHeuristicElectricalClosenessDecouplingCaps,
)
from faebryk.exporters.pcb.layout.heuristic_pulls import (
LayoutHeuristicElectricalClosenessPullResistors,
)
from faebryk.libs.library import L
from faebryk.libs.library import L # noqa: E401
from faebryk.libs.picker.picker import DescriptiveProperties
from faebryk.libs.units import P
from faebryk.libs.units import P # noqa: E401

logger = logging.getLogger(__name__)

Expand Down

0 comments on commit 5978ce4

Please sign in to comment.