Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a design without the default fileset #62

Open
RasmusGOlsen opened this issue Oct 8, 2023 · 1 comment
Open

Create a design without the default fileset #62

RasmusGOlsen opened this issue Oct 8, 2023 · 1 comment
Labels
Question Further information is requested

Comments

@RasmusGOlsen
Copy link

Can the Design constructor be changed so you can create a Design object without a default FileSet. In my project I create the FileSets and then add them to the design. Then I always have this default FileSet I don't use for anything. I need to handle in a special way when iterating the filesets.

@Paebbels Paebbels added the Question Further information is requested label Oct 8, 2023
@Paebbels
Copy link
Member

Paebbels commented Oct 8, 2023

I see currently 2 options:

  1. The default fileset is just a fileset as others, but it's auto generated and named default. This name can be modified using the .Name property.
  2. I could add a parameter to __init__(..., defaultFileset: Nullable[Fileset], ...) so you can handover a fileset, that is used as a default fileset.
default = Fileset("some_fileset")
design = Design("my_design", ..., defaultFileset=default, ...)

Would option 2 serve your needs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Development

No branches or pull requests

2 participants