Comments (3)
long story short: I don´t think we should just allow anything as input into the cell. convert it to something that is hashable. if you ask for numpy arrays, the next guy will ask for dataframes. How are you handling it in gdsfactory?
tl;dr give it something hashable or one of the types that are autoconverted ;)
from kfactory.
I see, it's a bit of an edge case, we wrote custom serializers in gdsfactory but it's a pain to maintain :)
from kfactory.
yeah, I agree. The reason I also push back hard on this: if you ever pass numpy values to any klayout objects, they will complain with a cryptic error message
>>> import klayout.db as kdb
>>> import numpy as np
>>>
>>> kdb.Trans(1,1)
r0 1,1
>>> kdb.Trans(np.int64(1),1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: No overload with matching arguments in Trans.__init__
from kfactory.
Related Issues (20)
- limit the max number of characters in the naming of kfactory, HOT 1
- support decorator in cells HOT 1
- 'UMKCell' object has no attribute 'x'
- Add clear to KCLayout HOT 1
- All-Angle Bundle Router HOT 4
- support gdsfactory grid
- get_route fails for waveguides close to each other HOT 3
- move polar copy
- recommended way of snapping non manhattan components HOT 1
- support adding `info`, and `post_process` to @kf.cell decorator
- support gdsfactory backend HOT 1
- PDK Cells lose any info and settings
- Create protocols for routing functions and other places where necessary
- Use `Annotated` to support propagating units to metadata HOT 3
- support KCell.min, KCell.min , Instance.xmin, INstance.ymin ... in um HOT 8
- Kf.VInstance.rotate HOT 1
- kf.show() HOT 2
- addd route_loopack inside flag
- segfault after flattening
- Route smart doesn't consider the bounding box always 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 kfactory.