Improve the GDS export of topology optimized designs#62
Draft
QuentinWach wants to merge 3 commits intomainfrom
Draft
Improve the GDS export of topology optimized designs#62QuentinWach wants to merge 3 commits intomainfrom
QuentinWach wants to merge 3 commits intomainfrom
Conversation
…ty in `4_topo.py` - Adjusted `points_per_wavelength` to 9 and reduced `STEPS` to 35 for improved simulation speed. - Implemented saving of the final permittivity grid as a numpy array for future use. - Added functionality to export the optimized design to a GDS file, including contour extraction of the optimized region.
…py` script - Updated `4_topo.py` to use `gdspy` for GDS file generation, improving the export process. - Introduced padding for the permittivity grid to ensure contours close at boundaries. - Created a new script `npz_to_gds.py` for converting `.npz` files to `.gds`, enhancing usability. - Improved contour extraction and polygon generation for optimized designs.
- Introduced `export_gds` and `export_grid_gds` functions for exporting designs and permittivity grids to GDS files. - Updated `RegularGrid` and `Design` classes to include methods for GDS export. - Enhanced `__init__.py` files to expose new I/O functions for easier access. - Refactored `4_topo.py` and `npz_to_gds.py` to utilize the new export functions, improving usability and code clarity.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.