Closed AngusP closed 4 years ago
Sorry @AngusP can you address the conflicts here thanks :)
@SchrodingersGat done
Hi again @SchrodingersGat, just checking in, from my end it looks all OK
Hi @SchrodingersGat can this please be pulled?
Rather silly to have variants without being able to mix and match them.
If @AngusP can fix the conflicts in README.md I'll merge. Sorry that this one has escaped my attention.
@AngusP I think you've merged into your working branch, but this pull request is from your master branch. Heads up: you have a merge conflict between your master and working branches, within your KiBOM_CLI.py.
- print("PCB variant:", args.variant)
+print("PCB variant:", ", ".join(pref.pcbConfig))
SchrodingersGat:master currently has the +print("PCB variant:", ", ".join(pref.pcbConfig))
line.
Cheers.
Thanks for the contribution, and the nudge ;)
This adds the ability to effectively 'OR' together inclusive variants ('+') and to AND exclude exclusive variants ('-').
From the README
This just adds a little more flexibility and power to the already very-handy PCB variants feature.
I've also added a row to the headers in the XML, CSV and HTML formats that gives the variant for which the BOM was generated. Possibly another command line argument to include the variant name in the filename may be useful too?
Also the logic I settled on was that the part should be fitted if the check field is empty, or if there is at least one include and no excludes. An alternative would be to allow an explicit include to override excludes, though in my opinion the use for that is less clear.