NanoComp / photonics-opt-testbed

testbed problems for photonics optimization
MIT License
30 stars 19 forks source link

Fix position deviation of filtered patterns #21

Closed mawc2019 closed 2 years ago

mawc2019 commented 2 years ago

Without this PR, the filtered pattern has a small deviation in position from the original pattern. This PR fixes the deviation and also contains some other tweaks. However, with this PR, the calculated minimum length scales have larger errors in some cases. Among the test examples of simple geometric objects, the comparison is as follows. The resolution is 50 points per unit length, which means that the size of a pixel is 0.02.

image