question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fixed selection columns for variants.

See original GitHub issue

It would be usefull to preload some columns with fixed selection values based on variants.

There is already --variants-whitelist and --variants-blacklist but these do not create columns, and they are not regex.

Context:

I use KiCAD with KiCost to manage variants.

KiCost allows use to specify a regex that helps filter all the variants. The dnp and variant fields determine together which components are ultimately present.

The contents of most other fields (description, value, …) can also be changed through the variant expression.

So when I add --variant '^(screen3v|button3)$' , the screen3v and button3 variants are selected.

Proposal

My proposal is that InteractiveHtmlBom also understand a variant option that is based on regex and allows the generation of named columns with tickboxes.

Example:

Repeat the same option multiple times

generate_interactive_bom.py --variant '3btn3Vscreen=^(screen3v|button3)$' --variant '2btn5Vscreen=^(screen5v)$' <otheroptions>

or

to be similar to the existing variant options, using space as a separator:

generate_interactive_bom.py --variant-regex '3btn3Vscreen=^(screen3v|button3)$ '2btn5Vscreen=^(screen5v)$' <otheroptions>

(when the equal sign is missing, this could be considered as a nameless field or only as a regex selector complementing the variants whitelist and blacklist options).

Regex is useful with buttons for example, use button.* to select all buttons.

The suggested examples would add two columns ‘3btn3Vscreen’ and ‘2btn5Vscreen’ to the HTML file much like the default Sourced and Placed columns. They may be modifiable, but the modfications may/(should) be suppressed on reload (which could be an option).

Applying the other impacts of the variant selection (component value) would be nice, but only applicable when only one variant is added (simpliest case because this value is the only one in the HTML file) or selected (more complex case because this adds logic to the HTML file).

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
set-softcommented, Oct 6, 2022

Hi @mdeweerd !

  1. You are right about the models and that’s what I try to do - at the same time I wonder about compatibility with the model’s licenses. Maybe another job for KiBot: verify that all the models are in the project - copy them in and adjust the project if not?

This is the feature I mentioned in INTI-CMNB/KiBot#279 😉

0reactions
mdeweerdcommented, Oct 28, 2021

@set-soft

  1. You are right about the models and that’s what I try to do - at the same time I wonder about compatibility with the model’s licenses. Maybe another job for KiBot: verify that all the models are in the project - copy them in and adjust the project if not?
  2. Ok, but I’m not currenty using CI/CD for KiCad projects, and I “hate” having multiple copies of the same (big sized) data, and even more downloading it “often”. Limiting ressource usage is a (small) gesture for the planet as well.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Create and use variants - Figma Help Center
Learn how to select layers and objects →; In the right sidebar, click the Combine as Variants button. Figma will add all components...
Read more >
Display Variants (Layout) - SAP Support
A display variant is a way to save a layout of a report so that they may be used for future reports. Display...
Read more >
Dynamic date selection in Variants - SAP Blogs
Go to column-Type of selection variable (Third from right hand side) ... E.g. one can have his/her Plant as fixed value in his/her...
Read more >
Genetic Variant Selection: Learning Across Traits and Sites
Second, ours is a fixed-effects model using sequence data. ... The column labeled V* shows the number of selected variants that are in...
Read more >
How to Create a Variant and Layout in SAP Procedures
This will minimize the need to enter selection parameters each time you run a SAP report. When a SAP report is processed, the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found