Laurier Loiselle
bbbf3fb0e9
add shared_bom support
2023-01-25 11:27:14 -05:00
Laurier Loiselle
55da28d1a9
src: wireviz: support extra metadata
2023-01-20 17:25:29 -05:00
Laurier Loiselle
13d34887b2
src: wireviz: log if adding additional bom item failed
2023-01-19 16:36:59 -05:00
Daniel Rojas
22762d84dd
Implement BOM bubbles
2023-01-19 16:36:46 -05:00
Daniel Rojas
8828ce1de3
Clarify wireviz.parse() input types
2023-01-19 16:36:42 -05:00
Daniel Rojas
10cf62e166
Rename modules, adjust imports, move build_examples.py
2023-01-19 16:36:41 -05:00
Daniel Rojas
cb07d51b2f
Prepare harness.populate_bom()
2023-01-19 16:36:39 -05:00
Daniel Rojas
9e1e97b1cb
Improve subclassing of components, prepare for BOM refactoring
2023-01-19 16:36:37 -05:00
Daniel Rojas
dcc750cf5c
Break longer lines not caught by black
...
because they were unbroken strings or comments
2023-01-19 16:36:36 -05:00
Daniel Rojas
81b0dba858
Make prefix for autogenerated component names configurable
...
`edotor.net` does not seem to like leading underscores, which makes GraphViz debugging difficult.
2023-01-19 16:36:23 -05:00
Daniel Rojas
81f955457d
Auto-assign missing harness title if reading from file
2023-01-19 16:36:22 -05:00
Daniel Rojas
fbc90c0475
Make template separator character user-configurable
2023-01-19 16:36:21 -05:00
Daniel Rojas
8796709195
Add support for multiple prepended files
2023-01-19 16:36:20 -05:00
Daniel Rojas
c1f195fe86
Automatically include input file directory in list to resolve image paths
2023-01-19 16:36:20 -05:00
Daniel Rojas
76da525c3b
Write docstring for parse() function
2023-01-19 16:36:19 -05:00
Daniel Rojas
22c3e18dfa
Add leading underscore to local helper functions
2023-01-19 16:36:19 -05:00
Daniel Rojas
73dfe74cf5
Allow specifying output directory and file name separately
2023-01-19 16:36:18 -05:00
Daniel Rojas
1c9a1d886f
Consolidate wireviz.parse() to handle Path, str and Dict as input
2023-01-19 16:36:18 -05:00
Daniel Rojas
a255596471
Apply some manual fixes, reapply black
2023-01-19 16:36:17 -05:00
Daniel Rojas
343cd2949f
Apply black
2023-01-19 16:36:17 -05:00
Daniel Rojas
e6f76f9ab7
Apply isort
2023-01-19 16:35:25 -05:00
Daniel Rojas
23db602445
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
2023-01-19 16:35:24 -05:00
Daniel Rojas
63be33e9db
Add main() to wireviz.py as fallback
2023-01-19 16:35:22 -05:00
Daniel Rojas
7638425fd9
Remove obsolete comments
2023-01-19 16:35:21 -05:00
Daniel Rojas
97207e6986
Fix smart file resolver for images
2023-01-19 16:35:21 -05:00
Daniel Rojas
b9527a8086
Do not output .gv files by default
2023-01-19 16:35:20 -05:00
Daniel Rojas
a4a89eb3df
Implement image path resolver
2023-01-19 16:35:20 -05:00
Daniel Rojas
471a6c3e29
Split the YAML loading and parsing functions
2023-01-19 16:35:20 -05:00
Daniel Rojas
f325b69d9a
Fix entry point
2023-01-19 16:35:19 -05:00
Daniel Rojas
a98e17b737
Only output requested file types ( closes #60 )
2023-01-19 16:35:19 -05:00
Daniel Rojas
d0909d4cbb
Remove unneeded code from wireviz.py
...
Re-add `parse_file()` for building examples
bla
2023-01-19 16:35:18 -05:00
Daniel Rojas
095a2a023b
Simplify main()
2023-01-19 16:35:17 -05:00
Daniel Rojas
f78f83cfdd
Add explanatory comment
2023-01-19 16:35:16 -05:00
Daniel Rojas
0192f6defd
Replace os.path with pathlib.Path where used
2023-01-19 16:35:16 -05:00
Daniel Rojas
37cd08d476
Simplify code
2023-01-19 16:35:11 -05:00
Daniel Rojas
def03d1ce3
Resolve component level mate not revealing connection count
2023-01-19 16:35:09 -05:00
Daniel Rojas
e3fbc91312
Squash feature/mate+autogenerate branch
2023-01-19 16:35:08 -05:00
Andreas Motl
80b7a5407b
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 .
2021-10-25 20:05:05 +02:00
kvid
db05514469
Add optional tweaking of the .gv output ( #215 )
...
Co-authored-by: Daniel Rojas <github@danielrojas.net>
2021-09-14 19:20:51 +02:00
kvid
92354e6852
Add basic options and metadata ( #214 )
2021-08-25 19:46:37 +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
KV
7df8a4b7cf
Add command line options to show version number
...
Add -V command line option (and --version as an alias) to
both wireviz.py and build_examples.py that show version number.
Move the version number from setup.py into __init__.py to access
the same version number specification from all files needing it.
This solves part 4 of issue #167 .
2020-10-11 13:37:34 +02:00
KV
c4957f1475
Comment out unimplemented command line option
...
It seems, that the current implementation ignores --generate-bom,
and that parser.add_argument() code line is therefore commented
out until it gets implemented to avoid any confusion.
This solves part 1 of issue #167 .
2020-10-11 13:37:34 +02:00
Daniel Rojas
831b423c03
Eliminate ferrule category, unify connectors ( #78 )
2020-07-20 08:21:54 +02:00
Andrew Katz
fecf27165f
Fix unicode issue for windows (force an encoding)
2020-07-19 19:03:07 +02:00
Jason
12d3002af8
Add type hinting ( #92 )
2020-07-15 19:30:23 +02:00
Jason
34cd9c2612
Match parse() return tuple order to input tuple order ( #89 )
...
Fixes #88 .
2020-07-15 08:07:15 +02:00
Jason
c8dc697845
Add ability for parse() to return the Harness instance ( #87 )
2020-07-14 22:01:00 +02:00
Tyler Ward
8b69e9a8a8
Add ability to include aditional BOM lines ( #80 )
2020-07-13 18:23:23 +02:00
Jason
3eed9681da
Remove unused parameter, fix default parameter ( #76 )
2020-07-12 08:21:28 +02:00