57 Commits

Author SHA1 Message Date
Tobias Falk
17407c195f rerun examples
Some checks failed
Create Examples / build (ubuntu-22.04, 3.7) (push) Has been cancelled
Create Examples / build (ubuntu-22.04, 3.8) (push) Has been cancelled
Create Examples / build (ubuntu-latest, 3.10) (push) Has been cancelled
Create Examples / build (ubuntu-latest, 3.11) (push) Has been cancelled
Create Examples / build (ubuntu-latest, 3.12) (push) Has been cancelled
Create Examples / build (ubuntu-latest, 3.9) (push) Has been cancelled
2025-03-12 23:02:46 +01:00
Tobias Falk
206be6bbed add ex16 2025-03-12 22:15:53 +01:00
Tobias Falk
cfe9590905 Add Readme text and examples 2025-03-12 22:15:35 +01:00
Daniel Rojas
01c3771a9c Merge branch 'refactor/big-refactor-squashed' into dev-refactored 2025-03-01 20:45:43 +01:00
Daniel Rojas
b1d02b9d7f Rebuild examples 2025-03-01 20:35:41 +01:00
Daniel Rojas
c33a19708c Refactor code (squashed commit)
Refactor connector node generation

Further refactor connector node generation

Rebuild demos

Generate gauge string inside Cable object

WIP: refactor cable node generation

Implement HTML indentation

WIP

More WIP

Remove old stuff, slightly simplify code

Outsource `gv_pin_table()`, simplify padding

Add TODOs

Outsource `set_dot_basics()` and `apply_dot_tweaks()`

Make setting HTML tag attributes easier through `kwargs`

Fix and simplify bgcolor logic

Reactivate cable edge generation

Outsource `gv_edge_wire()`

Make connecting things more object-oriented

Alphabetize HTML tags, improve bgcolor rendering

Make mates object-oriented

Run `autoflake -i`

Run `autoflake -i --remove-all-unused-imports`

Streamline assignment of ports to simple connectors

Implement color objects

Use color objects in WireViz

Re-sort `wv_colors.py`

Make green color darker

Break longer lines not caught by `black`

because they were unbroken strings or comments

Make variable name more expressive

Apply dot tweaks last

Remove unused line

Improve subclassing of components, prepare for BOM refactoring

Clean up

Include nested additional components in BOM

do not add autogenerated designators to BOM

Improve BOM generation (TODO: wires from a bundle)

Prepare `harness.populate_bom()`

Change `description` to `type` in additional BOM item YAML

Define CLI epilog str in single statement

Rename modules, adjust imports, move `build_examples.py`

Restructure and update `.gitignore`

Clarify `wireviz.parse()` input types

Implement BOM population (missing: qty multipliers)

Make `pin_objects` and `wire_objects` dictionaries

Compute qty's of additional components (WIP)

Add qty test file

Adapt `tutorial08.yml` (remove `unit` field)

Add `tabulate` to dependency list (might remove later if not needed)

Sort BOM by category, assign BOM IDs

Rename `Options.color_mode` to `.color_output_mod` for consistency

Change BOM output file extension from `.bom.tsv` to `.tsv`

Implement BOM bubbles

Stop recursive nesting of additional components

Add BOM bubble to additional component list (WIP)

Fix gauge conversion

Fix line breaks in code

Optimize BOM bubble geometry

Implement pin color output

Small issue: GraphViz warning
```
Warning: table size too small for content
```

Add some test files to `tests/` directory

Update test files

Allow multiple colors for components

Implement multiple colors for components, improve multicolor table rendering

Fix color cell implementation

Fix node background color rendering

Add test file for node and title bgcolors

WIP: BOM modes

Add TODO for empty connector pin tables

Comment out BOM modes (WIP) and BOM bubbles

Resume work on BOM

Include part number info in BOM table

Fix BOM output in TSV and HTML

Add bundles' wires' part number info to BOM

Add TODOs

Implement bundle part number rendering

Improve conductor table rendering

Fix additional component BOM table layout

Disable CLI BOM output

Add suggestions from #246

Add suggestions from #186

Add .vscode/ to .gitignore

Fix PyLance problems

Update interim version number

Fix zero-size cell for simple connectors without type

Implement additional parameters dict for components

Implement note for additional components

Thicken additional component table

Add placeholder for add.comp. PN info

Apply black
2025-03-01 19:41:27 +01:00
Daniel Rojas
2f737c2371 Prepare for refactoring (squashed commit)
no diff should ocurr as a result of the refactoring

Add `metadata.title` to `demo01.yml`

to avoid diffs later when calling via CLI

Add temporary loop to `demo01`

for debugging purposes

Add `cleanup.sh` (maybe move/delete later? or add commit hook?)

Deprecate Python 3.7, add Python 3.10

Add `devtools.txt`

Add `pyan` to `devtools.txt`

Add sample use to `devtools.txt`
2025-03-01 19:41:27 +01:00
Daniel Rojas
0c73e57267 Rebuild examples 2024-05-19 14:48:03 +02:00
Daniel Rojas
cbf8641c0a Rebuild examples 2024-04-16 14:07:17 +02:00
Daniel Rojas
95defd07c0 Add template metadata to demo02.yml 2021-10-16 21:52:05 +02:00
Daniel Rojas
db6f2da232 Move selected test files to examples directory 2021-10-13 21:39:11 +02:00
Daniel Rojas
8ea8248721 Squash feature/mate+autogenerate branch 2021-10-13 21:38:23 +02:00
Daniel Rojas
a6efd28124 Bump version in generated files
`.gv` and `.html` files include the version number as a comment.
Rebuild to avoid diffs during development
2021-10-11 22:11:24 +02:00
Daniel Rojas
eb7be156fa Rebuild examples 2021-10-11 20:59:18 +02:00
Daniel Rojas
3bf448c692 Update example 08 to reference wires using colors 2020-11-14 23:21:08 +01:00
Miklos Marton
e2e8bbfb91 Remove input text hyperlinks except in the HTML BOM
GraphViz does not support the a HTML tag when generating the tables for the
cables/connectors, so this change will remove these tags for the graph generation.
However for the HTML BOM output table these links will be generated.
2020-10-22 23:08:13 +02:00
Daniel Rojas
b2d1a29cc2 Rebuild all examples with v0.2 2020-10-17 11:42:30 +02:00
kvid
4782da47c9
Add optional image to connectors and cables (#153)
This image, with an optional caption below, is displayed in the lower 
section of the connector/cable node in the diagram - just above the 
notes if present.

This solves the basic part of issue #27, and is a continuation of 
PR #137 that was closed due to changes in the base branch.
2020-10-14 16:08:16 +02:00
Daniel Rojas
a69fc76651 Rebuild examples 2020-07-21 22:08:25 +02:00
Daniel Rojas
2a963bfef6 Update example input files 2020-07-21 22:01:10 +02:00
Daniel Rojas
8f833d9da5 Rebuild examples 2020-07-20 08:21:54 +02:00
Daniel Rojas
afbd11ccd4 Update example input files 2020-07-20 08:21:54 +02:00
Daniel Rojas
0da4441678 Rebuild examples 2020-07-19 19:05:35 +02:00
Andrew Katz
b147aa0eb1 Finish adding multicolor support 2020-07-19 18:59:34 +02:00
Daniel Rojas
b988e9b063 Update example YAML files 2020-07-10 19:21:33 +02:00
Daniel Rojas
21b3c9e59b Rebuild examples 2020-07-02 19:16:56 +02:00
Daniel Rojas
65a4d6bd07 Update example+tutorial input files
tut
2020-07-02 19:16:56 +02:00
KV
77bf398176 Add cable type in a couple of examples 2020-07-02 07:44:17 +02:00
Daniel Rojas
49322fc65f Fix demo 01 2020-06-30 17:58:44 +02:00
Daniel Rojas
9d2c193533 Update example 08 to hide pincount on 3.5mm jack 2020-06-29 17:46:45 +02:00
Daniel Rojas
52a8af298d Rebuild example 02 after fixes from #41 2020-06-29 14:44:44 +02:00
Andreas Nordin
08e53bcd48
Feature: bidirectional AWG/mm2 unit conversion (#41)
* Fix AWG<-> mm2 conversions

Add an inverted dictionary and a lookup function from awg -> mm2. Also
do some minor refactoring. Both sides of the conversion table were
converted to strings, since '0000' and '2/0' are perfectly valid AWG
values.

* Update example ex02 with awg -> mm2 conversion

Show conversions for ex02, and make sure it displays conversions in both
directions. Rebuild the example files.

* Fix faulty conversion of non-(mm2,AWG) units

The parsing allows arbitrary units to be used for cable dimensions --
this might be valid units, e.g. square inches, or invalid, e.g. bananas.
We only allow conversion between mm2 and AWG, so check that the
gauge_unit is either of those before conversion. If not, pass through as
is.

* Fix AWG string casing in output

Convert e.g. 'awg, 'AwG' to upper case for consistent rendering. Leave
any other input gauge units as they were.

Co-authored-by: Daniel Rojas <github@danielrojas.net>
2020-06-29 14:41:45 +02:00
Daniel Rojas
790e9c93c4 Update demos and examples 2020-06-27 23:46:22 +02:00
Morrison-Reed Elliot (BEG/EVS1-NA)
c3621498a7 implemented functionality to hide pins that are not connected 2020-06-24 11:47:08 -04:00
Daniel Rojas
4fa700eb2d Include BOM in example gallery 2020-06-14 21:56:06 +02:00
Daniel Rojas
ccf4db5555 Update examples and readme
Tune demo 02
2020-06-14 21:56:06 +02:00
Daniel Rojas
d5356260ca Change type: bundle to category: bundle 2020-06-14 17:52:22 +02:00
Daniel Rojas
93be0cba49 Change wire lengths on demo 02
for better cutlist functionality demo
2020-06-14 00:30:05 +02:00
Daniel Rojas
a43d7701f4 Change 'gender' to 'subtype' for more flexibility 2020-06-13 20:15:48 +02:00
Daniel Rojas
19f0a82544 Improve handling of mm² and AWG gauges 2020-06-13 17:57:20 +02:00
Daniel Rojas
3eaabc3b53 Rename nodes and wires to connectors and cables 2020-06-13 16:11:09 +02:00
Daniel Rojas
2687afcdd2 Rename num_wires to wirecount 2020-06-13 15:46:26 +02:00
Daniel Rojas
5bff36d4c4 Rename num_pins to pincount 2020-06-13 15:40:21 +02:00
Daniel Rojas
fdf5694534 Update examples and to-do list 2020-06-04 21:29:40 +02:00
Daniel Rojas
7151346e38 Add daisy chain examples 2020-05-30 14:19:25 +02:00
Daniel Rojas
d86ec0ad68 Auto-generate example gallery 2020-05-30 12:05:56 +02:00
Daniel Rojas
8aeabd03c3 Update and automate examples and demos 2020-05-30 11:25:36 +02:00
Daniel Rojas
fcf67145bf Show from/to designators on wire bundle 2020-05-29 22:55:39 +02:00
Daniel Rojas
12b4746e01 Fine-tune examples 2020-05-29 22:45:19 +02:00
Daniel Rojas
3becef7829 Add support for wire bundles 2020-05-29 22:37:48 +02:00