invrs-io / gym

A collection of inverse design challenges
https://invrs-io.github.io/gym/
MIT License
21 stars 2 forks source link

Adjust loss function for diffractive splitter and add test #70

Closed mfschubert closed 8 months ago

mfschubert commented 8 months ago

Change scalar exponent for diffractive splitter loss function to 2, mirroring what is done in the ceviche challenges and the metagrating challenge.

Add a test to the metagrating ensuring there is no NaN gradient for a uniform design.