Gdsfactory

Latest version: v8.26.0

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

Scan your dependencies

Page 65 of 72

2.2.2

- rename coupler ports inside mzi function

2.2.1

- pp.plot hides DEVREC layer
- test netlist of `_circuits`
- sort the keys when loading YAML file for test_netlists
- better docstrings
- add function_name to container
- remove duplicated keys for container
- pp.clear_cache() in pytest fixture in `pp/conftest.py`
- fixed pp.clear_cache() by using a global variable.
- added lytest tests, which test GDS boolean diffs using klayout
- fixed `pf diff` to show (diffs, common, only_old, only_new, old, new) using same layers in different cells. Thanks to Troy Tamas.
- removed `pins` argument from cell decorator as it changes the geometry of a cell with the same name (it was problematic).
- new recurse_instances function. No need to track connections in a global netlist dict. We can extract netlist connections from devices sharing ports.
- component_from_yaml adds label with. instance name. Thanks to Troy Tamas.
- write a pp.add_pins_to_references that adds pins and labels to references.
- make sure cell decorator checks that it returns a Component
- remove other types of units conversions from
- better type hints
- export hierarchical and flat netlists
- rename 0.5 as 500n (it makes more sense as default units are in um) and submicron features are named in nm
- remove other renames


if 1e12 > value > 1e9:
value = f"{int(value/1e9)}G"
elif 1e9 > value > 1e6:
value = f"{int(value/1e6)}M"
elif 1e6 > value > 1e3:
value = f"{int(value/1e3)}K"
if 1 > value > 1e-3:
value = f"{int(value*1e3)}n"
elif 1e-6 < value < 1e-3:
value = f"{int(value*1e6)}p"
elif 1e-9 < value < 1e-6:
value = f"{int(value*1e9)}f"
elif 1e-12 < value < 1e-9:
value = f"{int(value*1e12)}a"
else:
value = f"{value:.2f}"

2.2.0

- component_from_yaml updates:
- placements:
- port: you can define an anchor port
- dx: delta x
- dy: delta x
- mirror: boolean or float (x axis for the mirror)
- x: number or can also be a port from another instance
- routes:
- you can define a route range (left,E:0:3 : right,W:0:3)
- connect bundle is now the default way to connect groups of ports in component_from_yaml
- coupler: can change the vertical distance (dy) between outputs
- replace pp.autoname with pp.cell as a decorator with cells options (autoname, pins ...)

2.1.4

- fixed installer for windows using copy instead of symlink

2.1.3

- `pf install` installs klive, generate_tech and gitdiff
- `pf diff` makes boolean difference between 2 GDS files

2.1.2

- write conda environment.yml so you can `make conda` to install the conda environment
- setup.py installs klive, generate_tech and gitdiff

Page 65 of 72

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.