Comments (4)
how about using the post_process
flag?
from gdsfactory.
how about using the
post_process
flag?
Then it would be nice to have a convenient way to stack multiple post_process
functions in case that is already used for relevant geometry generation.
from gdsfactory.
at the moment you can compose using toolz.compose
Something we could do is #2594
what do you think?
from gdsfactory.
Supporting a sequence of functions sounds good to me but I think #2594 doesn't yet close this issue. Would need some sort of snippet implementing the file and linenumber as label in the GDS.
One problem that still persist is how to add a post_process step easily to something that already has a post_process step in a functools.partial
for example. Do we just need to accept having to do something like
component_f1 = partial(component, post_process=f1)
component_f1_f2 = partial(component_f1, post_process=[component_f1.keywords['post_process'], f2])
from gdsfactory.
Related Issues (20)
- Port.layer returns an integer HOT 4
- Question: Roughness in euler_bend_all_angle HOT 6
- Improper cache hits for some components in v7 HOT 1
- type object 'LAYER' has not attribute 'kcl' HOT 1
- 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
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.