Skip to content

Commit eaa6ea8

Browse files
release 0.2.4: bug fix on transistor with no part number
1 parent 27e2317 commit eaa6ea8

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed
45.6 KB
Binary file not shown.

dist/schemascii-0.2.4.tar.gz

55.7 KB
Binary file not shown.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "schemascii"
7-
version = "0.2.3"
7+
version = "0.2.4"
88
description = "Render ASCII-art schematics to SVG"
99
readme = "README.md"
1010
authors = [{ name = "dragoncoder047", email = "101021094+dragoncoder047@users.noreply.github.com" }]

schemascii/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from .utils import XML
99
from .errors import *
1010

11-
__version__ = "0.2.3"
11+
__version__ = "0.2.4"
1212

1313

1414
def render(filename: str, text: str = None, **options) -> str:

schemascii/components_render.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,11 @@ def transistor(box: Cbox, terminals: list[Terminal], bom_data: BOMData, **option
386386
bom:{npn/pnp/nfet/pfet}:part-number
387387
flags:s=source,d=drain,g=gate,e=emitter,c=collector,b=base"""
388388
if not any(
389-
bom_data.data.lower().startswith(x) for x in ("pnp:", "npn:", "nfet:", "pfet:")
389+
bom_data.data.lower().startswith(x) for x in ("pnp", "npn", "nfet", "pfet")
390390
):
391391
raise BOMError(f"Need type of transistor for {box.type}{box.id}")
392-
silicon_type, part_num = bom_data.data.split(":")
392+
silicon_type, *part_num = bom_data.data.split(":")
393+
part_num = ":".join(part_num)
393394
silicon_type = silicon_type.lower()
394395
bom_data = BOMData(bom_data.type, bom_data.id, part_num)
395396
if "fet" in silicon_type:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy