217 Commits

Author SHA1 Message Date
Gabe R
590ff8c2cb
Fixed incorrect import 2020-06-29 00:31:45 -05:00
Gabe R
1b4b586fce
Moved classes from wireviz.py to new files 2020-06-28 23:58:50 -05:00
Gabe R
6a68790653
Cleaned up wv_helper.py
* Formatted with autopep8
* Removed unused import typing.Any
* Adding Coding Magic
* Renamed argument input->inp to avoid shadowing python builtin
* Removed unnecessary dummy variable creation
2020-06-28 23:57:55 -05:00
Gabe R
9cb3608b27
Cleaned up wv_colors.py
*Reformatted with autopep8
*renamed input->inp to avoid shadowing input() function
2020-06-28 23:52:52 -05:00
Gabe R
854f06dd79
renamed more single-letter vars 2020-06-28 23:48:53 -05:00
Gabe R
5107f48d5c
more misc fixes 2020-06-28 23:12:45 -05:00
Gabe R
d7a4d713e6
rename occurances of type to maintype
Avoids accidently overriding a python standard function
2020-06-28 23:04:14 -05:00
Gabe R
10978c85e2
Misc fixes 2020-06-28 22:55:21 -05:00
Gabe R
87dc54b56a
more fstring replacements 2020-06-28 22:35:54 -05:00
Gabe R
0ca7620b82
replaced string.format with fstring Runs slightly faster, and is shorter per line that string.format 2020-06-28 21:06:15 -05:00
Gabe R
ef8252cf43
Fix single-letter variables
Replaced a bunch of single-letter variables with more descriptive ones
2020-06-28 20:46:58 -05:00
Gabe R
e0de9e6c4f
Remove unnecessary assignment before returning 2020-06-28 20:33:22 -05:00
Gabe R
bc48318ebd
Added optional to type hints that could be None 2020-06-28 20:30:37 -05:00
Gabe R
2fa85b1a94
Fixed use of bare except: 2020-06-28 20:25:39 -05:00
Gabe R
05fa4783ed
formatted with autopep8 2020-06-28 20:10:19 -05:00
Daniel Rojas
8326ddd462 Merge branch 'dev' 2020-06-28 23:01:45 +02:00
Tyler Ward
a3728f52ce
Fix for Designators apearing across all colours of wires of a guage. (#37)
The wirelist for the bom now has individual designators added. this also 
alows for the removal of designator list merging later.
2020-06-28 22:58:24 +02:00
Daniel Rojas
0a42b350c8 Update readme 2020-06-28 15:24:03 +02:00
Daniel Rojas
4aac32b6bf Merge branch 'dev' 2020-06-28 15:00:40 +02:00
Florian Pigorsch
6cf7178a9f
[ci] Setup Github actions to run 'build_examples.py' as a test on each pull/pull request. (#34)
Co-authored-by: Florian Pigorsch <florian@concept.de>
2020-06-28 14:59:29 +02:00
Daniel Rojas
a7419c444e
Merge pull request #35 from flopp/typos
Fix some typos
2020-06-28 14:57:58 +02:00
Florian Pigorsch
eb65be39dc Fix some typos: budnle, conector, separetely 2020-06-28 14:55:09 +02:00
Daniel Rojas
69bc20a31e Remove TODO file, move to-do's to GitHub Projects 2020-06-28 13:16:38 +02:00
Daniel Rojas
37d5ebd5bc Merge branch 'dev' 2020-06-28 12:38:36 +02:00
Daniel Rojas
7060c38f07 Add parse_file() function and use it in build_examples.py 2020-06-28 12:28:13 +02:00
Daniel Rojas
5d84bb86eb Update gitignore 2020-06-28 11:43:31 +02:00
Daniel Rojas
154e28f257 Change gen_bom to generate_bom 2020-06-28 11:43:22 +02:00
Andreas Nordin
1f06c6017c refactor: rename 'input' -> 'yaml_data'
'input' overloads a python built-in name. Refactor to avoid this.
2020-06-28 10:52:08 +02:00
Andreas Nordin
f14a07fe95 feature: add --prepend-file option
- Allow prepending a separate YAML file for e.g. including common
  template definitions. This is accomodated by a new commandline option,
  --prepend-file, which takes a path to a YAML file. This is prepended
  to the regular input as-is.

- Refactor file loading to accomodate the above. This includes moving
  relevant parts to main() and instead supplying parse () with a string
  representation of the YAML data. Also add early file existance checks
  and bail out if any of the inputs are inaccessible or nonexistant.
2020-06-28 10:51:49 +02:00
Andreas Nordin
a1f511738e fix install notes
Explicitly mention the system graphviz dependency and clarify possible
need for separate python install on old ubuntus
2020-06-28 10:50:53 +02:00
Andreas Nordin
668667d4fe Fix typo 2020-06-28 10:50:12 +02:00
Andreas Nordin
cdb2cf2b91 update build_examples script 2020-06-28 10:49:47 +02:00
Andreas Nordin
60cd069754 add install instructions to readme 2020-06-28 10:48:14 +02:00
Andreas Nordin
9af391ff9d clean up imports, cmdline handling
Order imports properly. Fix path when running script directly from repo
rather than as an installed package. Refactor command line handling.
2020-06-28 10:47:15 +02:00
Andreas Nordin
5514fd4244 refactor dependencies and installation
There are hard copies of the graphviz and pyyaml dependencies included
in the repo. Remove these.

Sort out installation and dependency handling by writing a functional
setup.py script. Rename top level documentation. Refactor wireviz.py
slightly to allow it to run as an installed script.

# Conflicts:
#	src/batch.py
#	src/wireviz/batch.py
#	src/wireviz/build_examples.py
2020-06-28 10:46:24 +02:00
Daniel Rojas
dfb184c1a4 Move source from src/ to src/wireviz/
in preparation for merge of refactor brancb
2020-06-28 10:39:11 +02:00
Daniel Rojas
5c582cbe12 Merge branch 'dev' 2020-06-27 23:56:58 +02:00
Daniel Rojas
4661992151 Fine-tune wire BOM output if no gauge is specified 2020-06-27 23:54:55 +02:00
Daniel Rojas
790e9c93c4 Update demos and examples 2020-06-27 23:46:22 +02:00
Daniel Rojas
da80d4ba85 Auto-assign pincount = 1 for ferrules at initialization 2020-06-27 23:37:37 +02:00
Daniel Rojas
d0023c1d41 Make custom pin numbers and hidden unused pins work nicely together 2020-06-27 23:31:58 +02:00
Daniel Rojas
304152f6b6 Merge branch 'hide_unconnected' into dev
# Conflicts:
#	src/wireviz.py
2020-06-27 23:09:35 +02:00
Daniel Rojas
0c6326b740
Merge pull request #5 from elliotmr/master
Feature: hide pins that are not connected
2020-06-27 14:44:32 +02:00
Daniel Rojas
a5ca5be69d Merge branch 'dev' 2020-06-27 11:24:14 +02:00
Daniel Rojas
8bf296b186 Auto-generate pin numbers if only pincount is specified 2020-06-27 11:13:16 +02:00
Daniel Rojas
b4ddbaec35
Merge pull request #10 from kimmoli/custom-pinnumbers
Add optional custom pinnumbers to connector
2020-06-27 10:52:46 +02:00
Daniel Rojas
2cfd239cd3 Merge branch 'dev' 2020-06-27 10:31:02 +02:00
Daniel Rojas
ffcdba4da4
Merge pull request #1 from Supern00dle/master
Add bigger AWG Sizes
2020-06-27 10:27:33 +02:00
Kimmo Lindholm
955cf83cfb Add optional custom pinnumbers to connector 2020-06-24 23:41:48 +03: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