Skip to content

Commit 5f01e89

Browse files
use 4 or more wires for dot
1 parent a096eb0 commit 5f01e89

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ def cmd(sh_line):
3030
cmd("python3 -m build --sdist")
3131
cmd("python3 -m build --wheel")
3232
print("git add -A")
33-
print(f"git commit -m 'blah'")
33+
print("git commit -m 'blah'")
3434
print(f"git tag {args.version}")
3535
print("git push --tags")

schemascii/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def polylinegon(points: list[complex], is_polygon: bool = False, **options):
126126

127127

128128
def find_dots(points: list[tuple[complex, complex]]) -> list[complex]:
129-
"Finds all the points where there are 3 or more connecting wires."
129+
"Finds all the points where there are 4 or more connecting wires."
130130
seen = {}
131131
for p1, p2 in points:
132132
if p1 not in seen:
@@ -137,7 +137,7 @@ def find_dots(points: list[tuple[complex, complex]]) -> list[complex]:
137137
seen[p2] = 1
138138
else:
139139
seen[p2] += 1
140-
return [pt for pt, count in seen.items() if count > 2]
140+
return [pt for pt, count in seen.items() if count > 3]
141141

142142

143143
def bunch_o_lines(points: list[tuple[complex, complex]], **options):

0 commit comments

Comments
 (0)