Skip to content

cell decorator not working as expected #2628

Answered by tvt173
jonnyroth asked this question in Q&A
Discussion options

You must be logged in to vote

hi @jonnyroth

yes, as you note in the comments of your example, there seems to be an issue with the serialization of the parameters for component_from_sliced_section. more specifically, it seems to be an issue with serialization of gdstk.Polygon objects as parameters. if you remove the cell decorator from that function, everything seems to work fine.

i identified the issue and will submit a PR for it, but if you are in the middle of something and want to continue using the current version of gdsfactory you are pinned to, I would simply remove the decorator for that function. assuming you are only using it like you are using it within this example, it should be safe to do so, as you are re…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tvt173
Comment options

@jonnyroth
Comment options

Answer selected by joamatab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants