Prefab

Latest version: v1.1.5

Safety actively analyzes 682449 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

1.1.5

- Fix alignment issue in `Device._device_to_gdstk` method, which is used in `Device.to_gdstk` and `Device.to_gds`.
- Minor linting fixes.

1.1.4

- Added custom vector-Jacobian product (VJP) for the `predict.predict_array_with_grad` function.
- Changed some of the docstrings in `prefab.predict` to be more consistent and clear.

1.1.3

- Moved prediction logic to `prefab.predict` module.
- First version of `predict.predict_array_with_grad`, which returns both the predicted array and its gradient. This is useful to fabrication-aware inverse design (FAID). More to come.
- Added `origin` parameter to GDS-related export methods.
- Small docstring fixes.

1.1.2

- User warning if `compare.intersection_over_union`, `compare.hamming_distance`, or `compare.dice_coefficient` are called with non-binarized devices.
- Added `height` parameter to many shape constructors in `prefab.shapes` to give more flexibility.
- Updates to the `README.md` to keep current.
- `Device.is_binary` is now a property.
- Moved `Device.enforce_feature_size` logic to `prefab.geometry` module.
- Added required version of `gdstk` to `pyproject.toml`.
- Removed leftover return statement in `geometry.rotate`.

1.1.1

- Manually adding small random noise to the semulated images to better match the real data. This is ideally included in the model training, but for now this is a quick fix.
- Added z-padding to the device array before exporting to STL with `Device.to_stl` to ensure that the exported device is closed.
- Removed buffer from `Device.device_array` before exporting to with `Device.to_gdsfactory`.

1.1.0

- The additions from `1.0.3` and `1.0.4` releases, which should be considered part of this release. Release planning a work in progress.
- Import and export from/to Tidy3D simulations with `Device.to_tidy3d` and `read.from_tidy3d`.
- Import and export from/to gdsfactory components with `Device.to_gdsfactory` and `read.from_gdsfactory`.
- Convert 2D device structures into 3D arrays or STL files with `Device.to_3d` and `Device.to_stl`. This is useful for simulating processes with angled sidewalls.
- Check and visualize the effect of enforcing a minimum feature size on the device geometry with `Device.check_feature_size` and `Device.enforce_feature_size`.

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.