stanfordnqp / spins-b

Photonic optimization library
GNU General Public License v3.0
289 stars 113 forks source link

Convert json file to gds file #57

Closed Suyichuan98 closed 3 years ago

Suyichuan98 commented 3 years ago

Hello, I am going through the "bend90" example by colab-notebook. How can I get a gds file from the example by using the notebook? Currently I get the json file after running the codes. The picture is the code that I am trying to get the gds file but it shows an error "ValueError: Unknown node, got node type 'goos.function.constant' with metatype 'NodeMetaType.OPTPLAN_NODE' " Capture

JesseLu commented 3 years ago

Hi, can you share your colab with me? It looks like you may be mixing grating and bend90 examples.

Suyichuan98 commented 3 years ago

Sure. I mixed the grating and bend90 example since I want to get a "json" file and generate a gds file. Here is my colab.

On Wed, Jun 9, 2021 at 11:55 AM JesseLu @.***> wrote:

Hi, can you share your colab with me? It looks like you may be mixing grating and bend90 examples.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/stanfordnqp/spins-b/issues/57#issuecomment-857914817, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALZS3B3GZU7PJ7UBVK6OEMDTR6TJNANCNFSM46DTHDVQ .

JesseLu commented 3 years ago

I don't see the colab. Can you share the link again?

On Thu, Jun 10, 2021 at 12:13 PM Suyichuan98 @.***> wrote:

Sure. I mixed the grating and bend90 example since I want to get a "json" file and generate a gds file. Here is my colab.

On Wed, Jun 9, 2021 at 11:55 AM JesseLu @.***> wrote:

Hi, can you share your colab with me? It looks like you may be mixing grating and bend90 examples.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/stanfordnqp/spins-b/issues/57#issuecomment-857914817 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ALZS3B3GZU7PJ7UBVK6OEMDTR6TJNANCNFSM46DTHDVQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stanfordnqp/spins-b/issues/57#issuecomment-858936257, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFQRGOM5OHAQA3ZEOKLW4DTSEFF5ANCNFSM46DTHDVQ .

Suyichuan98 commented 3 years ago

Here is the link: https://drive.google.com/file/d/1bp8FgyqD1IV3Uw-HZOoSM2m8u7-Tl6ot/view?usp=sharing

On Fri, Jun 11, 2021 at 11:07 AM JesseLu @.***> wrote:

I don't see the colab. Can you share the link again?

On Thu, Jun 10, 2021 at 12:13 PM Suyichuan98 @.***> wrote:

Sure. I mixed the grating and bend90 example since I want to get a "json" file and generate a gds file. Here is my colab.

On Wed, Jun 9, 2021 at 11:55 AM JesseLu @.***> wrote:

Hi, can you share your colab with me? It looks like you may be mixing grating and bend90 examples.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/stanfordnqp/spins-b/issues/57#issuecomment-857914817 , or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ALZS3B3GZU7PJ7UBVK6OEMDTR6TJNANCNFSM46DTHDVQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/stanfordnqp/spins-b/issues/57#issuecomment-858936257 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAFQRGOM5OHAQA3ZEOKLW4DTSEFF5ANCNFSM46DTHDVQ

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/stanfordnqp/spins-b/issues/57#issuecomment-859721902, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALZS3B5L364ZOL6GB76WMTLTSI7GFANCNFSM46DTHDVQ .

Suyichuan98 commented 3 years ago

Here is the new link: https://drive.google.com/file/d/1bp8FgyqD1IV3Uw-HZOoSM2m8u7-Tl6ot/view?usp=sharing

On Fri, Jun 11, 2021 at 11:07 AM JesseLu @.***> wrote:

I don't see the colab. Can you share the link again?

On Thu, Jun 10, 2021 at 12:13 PM Suyichuan98 @.***> wrote:

Sure. I mixed the grating and bend90 example since I want to get a "json" file and generate a gds file. Here is my colab.

On Wed, Jun 9, 2021 at 11:55 AM JesseLu @.***> wrote:

Hi, can you share your colab with me? It looks like you may be mixing grating and bend90 examples.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/stanfordnqp/spins-b/issues/57#issuecomment-857914817 , or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ALZS3B3GZU7PJ7UBVK6OEMDTR6TJNANCNFSM46DTHDVQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/stanfordnqp/spins-b/issues/57#issuecomment-858936257 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAFQRGOM5OHAQA3ZEOKLW4DTSEFF5ANCNFSM46DTHDVQ

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/stanfordnqp/spins-b/issues/57#issuecomment-859721902, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALZS3B5L364ZOL6GB76WMTLTSI7GFANCNFSM46DTHDVQ .

JesseLu commented 3 years ago

https://colab.research.google.com/drive/1bp8FgyqD1IV3Uw-HZOoSM2m8u7-Tl6ot#scrollTo=IFRivKOHUFjp

I added some cells to generate GDS. It does not seem to be straightforward to generate GDS from goos at the moment. Made other changes to the colab to remove the Google Drive dependence.