283 Commits

Author SHA1 Message Date
Tobias Falk
4546413a01 Implemented Base Jumpers 2024-07-20 15:44:37 +02:00
Daniel Rojas
1da0b0fc56 Continue work on BOM handling (WIP) 2024-04-26 09:38:55 +02:00
Daniel Rojas
cc18c62f3e Remove unnecessary casting of int to float
https://github.com/wireviz/WireViz/pull/251#discussion_r1359000766
2024-04-16 15:18:04 +02:00
Daniel Rojas
9e72905895 Remove duplicate category attribute
Removed from `Connector` class since it is already defined in the `Component` superclass.
2024-04-16 15:01:17 +02:00
Daniel Rojas
78f2c4a7af Remove unused attribute 2024-04-16 14:52:53 +02:00
Daniel Rojas
3539b2f8fb Move parse_number_and_unit() and NumberAndUnit definition to wv_utils.py 2024-04-16 14:51:28 +02:00
KV
49556bd81e Split out class AdditionalBomItem from AdditionalComponent
https://github.com/wireviz/WireViz/pull/251#discussion_r1359055105

No output changed for any examples/tutorial/tests input.
2023-10-28 03:39:28 +02:00
KV
98e8f7f7ca Rename fill_partnumbers() to __post_init__()
https://github.com/wireviz/WireViz/pull/251#discussion_r1358992408
2023-10-20 23:30:11 +02:00
KV
8cd76eb605 Add PN string in gv_additional_component_table() 2023-10-11 23:31:20 +02:00
KV
4238a8aef5 Avoid wrong function name in warnings 2023-10-10 22:30:38 +02:00
KV
ca7b134e1e Handle also int colors in colon separated string
Bug: 0x112233:0x445566 in YAML input didn't convert such colors
to #112233:#445566 and the strings where just passed as uppercase
to the .gv file. Hence Graphviz printed warnings about unknown
colors and used black as color instead.

Add test for int as string. Re-ordered if statements to give an
exception when a color has an unknown type.
2023-09-16 17:12:45 +02:00
KV
f122278b07 Include "tests" folders in the build tool groups
Allow absent "prefix" in group entries to simplify the code
2023-09-12 19:58:36 +02:00
KV
8e2debb1fa Change BOM output file extension from .bom.tsv to .tsv
Complementary changes to the commit with the same title
earlier in the same PR. Avoid refering to the old filenames.
2023-09-12 19:58:36 +02:00
KV
af338f620c Change version string to comply with PEP440
It seems "-dev" (normalized to ".dev") should only be directly followed
by a number for different deveopment releases of the same version.
See full description: https://peps.python.org/pep-0440/
2023-09-12 19:58:36 +02:00
Daniel Rojas
0b173700fa Apply black 2023-09-12 19:58:35 +02:00
Daniel Rojas
5183fdaee4 Add placeholder for add.comp. PN info 2023-09-12 19:58:35 +02:00
Daniel Rojas
e2e04f725e Thicken additional component table 2023-09-12 19:58:35 +02:00
Daniel Rojas
1e4e63ec27 Implement note for additional components 2023-09-12 19:58:35 +02:00
Daniel Rojas
00d5271f0c Implement additional parameters dict for components 2023-09-12 19:58:35 +02:00
Daniel Rojas
8c1d2773a3 Fix zero-size cell for simple connectors without type 2023-09-12 19:58:35 +02:00
Daniel Rojas
477a3f7706 Update interim version number 2023-09-12 19:58:35 +02:00
Daniel Rojas
310e5968ef Fix PyLance problems 2023-09-12 19:58:35 +02:00
Daniel Rojas
162fe443d1 Add suggestions from #186 2023-09-12 19:58:34 +02:00
Daniel Rojas
c3b07cf3dd Add suggestions from #246 2023-09-12 19:58:34 +02:00
Daniel Rojas
fc06491b8c Disable CLI BOM output 2023-09-12 19:58:34 +02:00
Daniel Rojas
c7dcac4893 Fix additional component BOM table layout 2023-09-12 19:58:34 +02:00
Daniel Rojas
1f8d8b3f8d Improve conductor table rendering 2023-09-12 19:58:34 +02:00
Daniel Rojas
238bc2585e Implement bundle part number rendering 2023-09-12 19:58:34 +02:00
Daniel Rojas
35f751e05f Add TODOs 2023-09-12 19:58:33 +02:00
Daniel Rojas
8c9a8c1cb3 Add bundles' wires' part number info to BOM 2023-09-12 19:58:33 +02:00
Daniel Rojas
7d49f50984 Fix BOM output in TSV and HTML 2023-09-12 19:58:33 +02:00
Daniel Rojas
af230a4a5c Include part number info in BOM table 2023-09-12 19:58:33 +02:00
Daniel Rojas
3b048ba77f Resume work on BOM 2023-09-12 19:58:33 +02:00
Daniel Rojas
91b02fcf10 Comment out BOM modes (WIP) and BOM bubbles 2023-09-12 19:58:33 +02:00
Daniel Rojas
4b6f791bdc Add TODO for empty connector pin tables 2023-09-12 19:58:33 +02:00
Daniel Rojas
d8a6da373f WIP: BOM modes 2023-09-12 19:58:33 +02:00
Daniel Rojas
c21f81a2cc Fix node background color rendering 2023-09-12 19:58:32 +02:00
Daniel Rojas
634cdd5265 Fix color cell implementation 2023-09-12 19:58:32 +02:00
Daniel Rojas
1b6030c1a3 Implement multiple colors for components, improve multicolor table rendering 2023-09-12 19:58:32 +02:00
Daniel Rojas
2fc132bdb9 Allow multiple colors for components 2023-09-12 19:58:32 +02:00
Daniel Rojas
44d5966bf8 Implement pin color output
Small issue: GraphViz warning
```
Warning: table size too small for content
```
2023-09-12 19:58:32 +02:00
Daniel Rojas
6f79064802 Optimize BOM bubble geometry 2023-09-12 19:58:32 +02:00
Daniel Rojas
b4cd8a77f0 Fix line breaks in code 2023-09-12 19:58:31 +02:00
Daniel Rojas
728741e9ff Fix gauge conversion 2023-09-12 19:58:31 +02:00
Daniel Rojas
4a9a4c8d46 Add BOM bubble to additional component list (WIP) 2023-09-12 19:58:31 +02:00
Daniel Rojas
c7537f000a Stop recursive nesting of additional components 2023-09-12 19:58:31 +02:00
Daniel Rojas
b15658b926 Implement BOM bubbles 2023-09-12 19:58:31 +02:00
Daniel Rojas
df1e972b17 Change BOM output file extension from .bom.tsv to .tsv 2023-09-12 19:58:31 +02:00
Daniel Rojas
63046346f4 Rename Options.color_mode to .color_output_mod for consistency 2023-09-12 19:58:31 +02:00
Daniel Rojas
1d99889175 Sort BOM by category, assign BOM IDs 2023-09-12 19:58:31 +02:00