Skip to content

Commit 6cb6866

Browse files
update readme images
1 parent bee7c8c commit 6cb6866

File tree

8 files changed

+9
-4
lines changed

8 files changed

+9
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ J2:GND
4141

4242
Into this:
4343

44-
![image](test_data/test_charge_pump_no_pin_labels.png)
44+
![image](test_data/test_charge_pump.png)
4545

4646
And with a little CSS, this:
4747

48-
![image](test_data/test_charge_pump_no_pin_labels_css.png)
48+
![image](test_data/test_charge_pump.png)
4949

5050
Works with Python 3.10+. It uses the new `match` feature in a few places. If you need to run Schemascii on an older version of Python, feel free to fork it and send me a pull request.
5151

schemascii/wires.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ def next_in_dir(
4242
res = next_in_dir(grid, point, dydx)
4343
if res is not None:
4444
point = res[0]
45+
elif dydx in (1j, -1j) and grid.get(point) == "-":
46+
return None
47+
elif dydx in (1, -1) and grid.get(point) in "|()":
48+
return None
4549
else:
4650
return None
4751
case _:

test_data/test_charge_pump.png

17.5 KB
Loading

test_data/test_charge_pump.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
| | | |
33
| R1 .~~~. |
44
| | : :-*
5-
| *-----: :---+C2--*--D2+--*----------J1
5+
| *-----: :---+C2--*--D2+--*----J1
66
| | :U1 : | |
77
| R2 :555: | |
88
| | *-: :-* | |
99
| C1 | : : | + C3
1010
| | *-: : C4 D1 +
1111
| *---* .~~~. | | |
1212
| | | | | |
13-
*---------*-------*---*------*-------*----------J2
13+
*---------*-------*---*------*-------*----J2
1414

1515
BAT1:5
1616
R1:10k

test_data/test_charge_pump.txt.svg

Lines changed: 1 addition & 0 deletions
Loading

test_data/test_charge_pump_css.png

17.5 KB
Loading
-16.1 KB
Binary file not shown.
-16.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)