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

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
iopapamanoglou committed Sep 11, 2024
1 parent d605628 commit 44ef7e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/iterative_design_nand.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def App():
# parametrizing
for _, t in app.get_graph().nodes_with_trait(F.ElectricLogic.has_pulls):
for pull_resistor in (r for r in t.get_pulls() if r):
pull_resistor.resistance.merge(100 * P.kohm)
pull_resistor.resistance.merge(F.Range.from_center_rel(100 * P.kohm, 0.05))
power_source.power.voltage.merge(3 * P.V)
led.led.led.brightness.merge(
TypicalLuminousIntensity.APPLICATION_LED_INDICATOR_INSIDE.value.value
Expand Down
2 changes: 1 addition & 1 deletion examples/route.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, extrude_y: float):

def __preinit__(self):
for resistor in self.resistors:
resistor.resistance.merge(F.Constant(1000 * P.ohm))
resistor.resistance.merge(F.Range.from_center_rel(1000 * P.ohm, 0.05))
resistor.unnamed[0].connect(self.unnamed[0])
resistor.unnamed[1].connect(self.unnamed[1])

Expand Down

0 comments on commit 44ef7e6

Please sign in to comment.