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

Include from inside SubCircuitFactory #388

Open
mbacvanski opened this issue Dec 4, 2024 · 0 comments
Open

Include from inside SubCircuitFactory #388

mbacvanski opened this issue Dec 4, 2024 · 0 comments

Comments

@mbacvanski
Copy link

I have a few nested subcircuits, which I'm building with SubCircuitFactory. It seems that when I use a component in an inner subcircuit, it needs to be included in its immediately containing subcircuit, which means I need to be able to have an .include statement from SubCircuitFactory. However, it seems like I can only add .include statements from Circuits. How can I get around this?

As an example, this is what I need

.subckt A input output
.include opamp.sub
.subckt B input output
* inside here I use the opamp
.ends B
.ends A
.end

but there is no self.include(...) method from SubCircuitFactory, so it seems like I can only do this, which doesn't work:

.include opamp.sub
.subckt A input output
.subckt B input output
* inside here I use the opamp
.ends B
.ends A
.end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant