214 Commits

Author SHA1 Message Date
Tobias Falk
6610f515de Implemened Proposal #352 2024-06-16 22:17:54 +02:00
Tobias Falk
5260faad98 Added executable chack 2024-06-16 14:32:41 +02:00
Tobias Falk
b5aa1c234a Changed AddComp shorts to references and added the designators to the bom 2024-06-16 14:08:03 +02:00
Tobias Falk
1b901043bb fix multicoolr Straitening 2024-06-16 12:36:38 +02:00
Tobias Falk
0801d7b8b1 Updated Syntax to make the shorts as Aditional Component 2024-06-15 01:29:56 +02:00
Tobias Falk
11e4611907 Added Bom entrys and removed grapgh bom 2024-06-09 21:44:10 +02:00
Tobias Falk
be801c344d Added type for shorts(loop or internal), see ex16 2024-06-09 01:46:20 +02:00
Tobias Falk
02fcc688ac more to added more options 2024-06-08 14:17:04 +02:00
Tobias Falk
f49921b930 Added more options for shorts
Changed the syntax and added options for the shorts, see ex15 for more
2024-06-06 00:59:14 +02:00
Tobias Falk
8c97c5df22 Made line from dashed to solid bold 2024-06-01 11:09:14 +02:00
Tobias Falk
a015da52b8 Added dashed lines 2024-05-30 22:35:49 +02:00
Tobias Falk
465aefaf77 Added Dark Circles 2024-05-30 16:26:19 +02:00
KV
b85bd0cd0a Add check for outdated connector attributes 2024-05-19 14:48:03 +02:00
Daniel Rojas
81ed3fa12b Remove references for unsupported output formats
Remove the references in the CLI help, but keep the placeholders elsewhere in the code as a TODO
2024-05-19 14:48:03 +02:00
Daniel Rojas
8e3014911a Apply suggestions from code review
Co-authored-by: kvid <kvid@users.noreply.github.com>
2024-05-19 14:48:03 +02:00
Daniel Rojas
684f6f0064 Apply black 2024-05-19 14:48:03 +02:00
Andreas Motl
49c7685bb2 Improve gracefulness when invoking wireviz.parse() without file_out
This happened to be a regression for WireViz-Web [1], which aims to do
as much in memory as possible.

[1] https://github.com/daq-tools/wireviz-web.

kvid rebased and mixed original commit with similar change by Daniel Rojas

Co-authored-by: kvid <kvid@users.noreply.github.com>
2024-05-19 14:46:46 +02:00
Daniel Rojas
d680361556 Bump version to 0.5-dev 2024-04-16 14:08:33 +02:00
Daniel Rojas
455d14ea4a Bump version to 0.4 2024-04-16 14:06:53 +02:00
Daniel Rojas
fdb75693dd Fix but in additional component description generation 2024-04-16 14:05:25 +02:00
Daniel Rojas
f98bf2afec Do not allow negative qty_multiplier
Co-authored-by: kvid <kvid@users.noreply.github.com>
2024-04-16 13:46:46 +02:00
Jeremy Ruhland (hatchery)
848fdf03fb Hide qty 0 additional components from BOM 2024-04-16 13:46:46 +02:00
Jeremy Ruhland (hatchery)
df4a4188ba Add unpopulated option to additional components qty multiplier 2024-04-16 13:46:46 +02:00
Daniel Rojas
8ba9131a11 Add warning about unconnected components 2024-04-16 10:15:33 +02:00
kvid
a26f734b94 Update src/wireviz/DataClasses.py as requested in review (#264)
No need to reference github issue in the code.

Co-authored-by: Daniel Rojas <github@danielrojas.net>
2023-09-08 17:37:25 +02:00
KV
f6c3a37563 Make sure loop connected pins are not hidden (#264)
- Resolves #263 that describes warnings and weird loop drawing because
  loop connected pins are hidden when hide_disconnected_pins=True.

- Activate loop pins as early as possible to enable correct counting of
  connected pins when
  connector.additional_components.qty_multiplier=populated.

- Check that loop pins actually exist before activating them.
2023-09-08 17:37:25 +02:00
RedshiftVelocities
6f9007f45d
Use portable OS error codes so program doesn't crash (#318)
Hard-coding OS error numbers that differ between different platforms
caused the program to crash at platforms using a different error number.

Using the Standard errno system symbols will avoid this problem.

Co-authored-by: kvid <kvid@users.noreply.github.com>
2023-09-01 22:24:34 +02:00
KV
f9d1dd0148 Fix bug commented in #186
Changes in #186 made it impossible to hide cable wire numbers.

https://github.com/wireviz/WireViz/pull/186#discussion_r716246852
2023-08-27 15:47:08 +02:00
Julien Lecoeur
9dbf4538fd Fix graphviz file header (#261)
The two header comments were missing trailing newlines.

This behavior is introduced by v0.18 of the graphviz Python package;
where as v0.17 did include the newline automatically.

Closes #258
2023-08-27 15:31:17 +02:00
Daniel Rojas
ba3f0248a5 Simplify Enum 2021-10-16 22:58:47 +02:00
Daniel Rojas
6f9bb67d02 Embed images into SVG output 2021-10-16 22:39:41 +02:00
Daniel Rojas
e31ed72655 Auto-assign missing harness title if reading from file 2021-10-16 22:27:00 +02:00
Daniel Rojas
d19c260940 Simplify file access operations 2021-10-16 22:27:00 +02:00
Daniel Rojas
45bcc1dd45 Make template separator character user-configurable 2021-10-16 22:27:00 +02:00
Daniel Rojas
08b5124adb Add support for multiple prepended files 2021-10-16 22:26:59 +02:00
Daniel Rojas
5aaea651b1 Automatically include input file directory in list to resolve image paths 2021-10-16 22:26:59 +02:00
Daniel Rojas
b46d26319a Update build_examples.py 2021-10-16 22:26:59 +02:00
Daniel Rojas
3aa1a2e651 Write docstring for parse() function 2021-10-16 22:26:59 +02:00
Daniel Rojas
8215113165 Add leading underscore to local helper functions 2021-10-16 22:26:59 +02:00
Daniel Rojas
e3530702f2 Allow specifying output directory and file name separately 2021-10-16 22:26:59 +02:00
Daniel Rojas
d7d7854bce Consolidate wireviz.parse() to handle Path, str and Dict as input 2021-10-16 22:26:59 +02:00
Daniel Rojas
c89cf735ae Apply some manual fixes, reapply black 2021-10-16 22:09:59 +02:00
Daniel Rojas
f92985a61c Apply black 2021-10-16 22:09:59 +02:00
Daniel Rojas
344615483a Apply isort 2021-10-16 22:09:59 +02:00
Daniel Rojas
65b8e36fe5 Create cache of graph to avoid generating it more than once 2021-10-16 22:08:01 +02:00
Daniel Rojas
fb2aae5515 Split file output logic and object return logic
Use `output_formats` parameter to specify which *files* to output to disk,
Use `return_types` parameter to specify which objects to return to a calling Python script
2021-10-16 22:08:01 +02:00
Daniel Rojas
d6d1fbcf16 Output help string if no arguments are received 2021-10-16 22:08:01 +02:00
Daniel Rojas
a4343ae04c Sort --format flags alphabetically 2021-10-16 22:08:01 +02:00
Daniel Rojas
5b3c2b3297 Add encoding info to wv_cli.py 2021-10-16 22:08:01 +02:00
Daniel Rojas
0cb0a4e054 Add main() to wireviz.py as fallback 2021-10-16 22:08:01 +02:00