RedshiftVelocities
4b759ee297
Update src/wireviz/wireviz.py
...
Co-authored-by: kvid <kvid@users.noreply.github.com>
2023-09-01 21:05:23 +02:00
RedshiftVelocities
daf8f1c1c0
Update wireviz.py
2023-09-01 21:05:23 +02:00
RedshiftVelocities
b841400f55
Update to work on windows too
...
The error code is 22 on windows, apparently
2023-09-01 21:05:23 +02:00
RedshiftVelocities
739b1dade3
Update error code so program doesn't crash
...
I think OSError had an update at some point. Anyhow this change fixes this version of the program.
2023-09-01 21:05:23 +02:00
Daniel Rojas
e31ed72655
Auto-assign missing harness title if reading from file
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
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
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
0cb0a4e054
Add main() to wireviz.py as fallback
2021-10-16 22:08:01 +02:00
Daniel Rojas
3c6b902867
Remove obsolete comments
2021-10-16 22:08:01 +02:00
Daniel Rojas
3a181f6f95
Fix smart file resolver for images
2021-10-16 22:08:01 +02:00
Daniel Rojas
b1fa2b9de9
Do not output .gv files by default
2021-10-16 22:08:01 +02:00
Daniel Rojas
6a08988ca9
Implement image path resolver
2021-10-16 22:08:01 +02:00
Daniel Rojas
a5b0fbe305
Split the YAML loading and parsing functions
2021-10-16 22:08:00 +02:00
Daniel Rojas
b53ce36046
Fix entry point
2021-10-16 22:08:00 +02:00
Daniel Rojas
d3e99abaa8
Only output requested file types ( closes #60 )
2021-10-16 22:08:00 +02:00
Daniel Rojas
19481b291b
Remove unneeded code from wireviz.py
...
Re-add `parse_file()` for building examples
bla
2021-10-16 22:08:00 +02:00
Daniel Rojas
35e89d4fdf
Simplify main()
2021-10-16 21:54:56 +02:00
Daniel Rojas
a85ad89719
Add explanatory comment
2021-10-16 21:54:56 +02:00
Daniel Rojas
00be4747ad
Replace os.path with pathlib.Path where used
2021-10-16 21:54:56 +02:00
Daniel Rojas
f0b63de3c7
Simplify code
2021-10-14 18:03:30 +02:00
Daniel Rojas
2d701ee652
Resolve component level mate not revealing connection count
2021-10-13 21:39:11 +02:00
Daniel Rojas
8ea8248721
Squash feature/mate+autogenerate branch
2021-10-13 21:38:23 +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
Daniel Rojas
cf6d3676c4
Ensure items in a connection set alternate between connectors and cables
2020-07-11 11:31:02 +02:00
Daniel Rojas
b4791900f2
Make connecting components together easier and more flexible
...
Closes #67 .
- Allow defining arbitrarily long lists of alternating connectors and cables in a connection set.
- Start work towards removing 'ferrules' as special case, merging them with normal connectors
- Stramline auto-generation of simple, one pin connectors (ferrules, wire splices, ...)
2020-07-10 18:53:32 +02:00
Daniel Rojas
de1e45f72b
Fix bug in refactoring of #55 , add SVG output option
2020-07-05 12:24:51 +02:00
Daniel Rojas
144c99e021
Refactor #55
2020-07-04 17:16:00 +02:00
Jason
ebf1e5a6f2
Add ability to export PNG data directly to other programs. ( #55 )
2020-07-04 17:03:04 +02:00
Tyler Ward
c200f66009
Merged in refactoring changes from upstream
2020-07-02 00:50:48 +01:00
Tyler Ward
9c5ea06ca2
Added spaces after MPN: and IPN:
2020-07-01 23:47:49 +01:00