Closed tvt173 closed 1 month ago
Sure sounds reasonable. Where do you want to retrieve them from by tag? kcl.factories
?
And maybe it makes sense to have the tags be a dict instead?
could be, if the tags will always be grouped like this, and there will always be one tag per group. i thought it might be more flexible this way though.
Depending on the user or context, it may be useful to organize cells in a particular way. For example:
A nice way to do this might be to allow the specification of "tags" or "labels" on the component, within the cell decorator, so that they can be obtained without needing to invoke the component. Then the user could specify a set of tags for any given component, letting the downstream user of the library filter or organize as they please.
These tags could be simple like "splitter" or you could specify something like "maturity:golden" that gives the user a way to filter and select from a subcategory of tags.
For example, a component definition might look like this:
@sebastian-goeldi @joamatab @flaport