Comments (4)
very similar in gdsfactory,
the main difference is that we always create a top cell
import gdsfactory as gf
c = gf.Component('top')
cell1 = gf.Component("FIRST")
cell2 = gf.Component("SECOND")
rect = gf.components.rectangle(size=(2, 1))
cell1.add_ref(rect)
cell2.add_ref(rect)
c.show()
from gdsfactory.
very similar in gdsfactory,
the main difference is that we always create a top cell
import gdsfactory as gf c = gf.Component('top') cell1 = gf.Component("FIRST") cell2 = gf.Component("SECOND") rect = gf.components.rectangle(size=(2, 1)) cell1.add_ref(rect) cell2.add_ref(rect) c.show()
Thanks, do you mean that I can only create cells like this?
from gdsfactory.
yes
from gdsfactory.
thanks!
from gdsfactory.
Related Issues (20)
- RuntimeError: Cannot write layer numbers larger than 65535 to GDS2 streams HOT 2
- remap_layers does not remap layers HOT 3
- The get_ports_list() function does not work in the reference device. HOT 1
- The port doesn't seem to work HOT 2
- `route_from_single_steps` is missing a straight `ComponentSpec` argument
- get_cells looks at cell decorated functions instead of type annotations
- import gds error: borrowing component from another PDK HOT 4
- Pass list of the components or references to boolean function HOT 1
- Importing gdsfactory changes `yaml.safe_load` behavior HOT 1
- Klayout integration stopped working HOT 1
- ValueError: ref() is deprecated. Use add_ref() instead HOT 1
- Resolve Port Positions Recursively from a Top Component in V8 HOT 5
- Colab examples on docs site no longer run after gf requiring python 3.11 HOT 3
- Consistency of the commands. HOT 2
- .dmove() (and .move()) not compatible with Port or DPoint arguments
- How to Obtain the Rotation of a ComponentReference in V8 HOT 2
- No module named 'kfactory.routing.generic' HOT 2
- Optical Ports of PCell HOT 2
- Bug: error in `gf.components.text_rectangular`
- route_single should error for width mismatch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdsfactory.