diff --git a/CHANGELOG.md b/CHANGELOG.md index debaf467..4a8b6b7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,31 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang +## [0.10.0](https://github.com/gdsfactory/kfactory/releases/v0.10.0) - 2023-12-05 + + +### Added + +- Added `center` to `rotate` to allow rotating around a center point +- Added `rec_dict` to `@cell` decorator to allow for recursive dictionaries +- Added functionality to `@cell` to allow a user defined cache +- Added invert to `route_manhattan` and allow `routing.optical.route` to add routing_kwargs to the routing function +- add Instance.mirror Instance.center + + +### Changed + +- Renamed -> and allow passing kwargs to set attributes of the object +- Renamed `function_cache` -> `cache` +- rename autorename_ports to auto_rename_ports +- rename port position to center + + +### Fixed + +- add Instance setter and getter for center [#190](https://github.com/gdsfactory/kfactory/issues/190) +- Fixed typo `enclosure_mape` -> `enclosure_map` [#211](https://github.com/gdsfactory/kfactory/issues/211) + ## [0.9.3](https://github.com/gdsfactory/kfactory/releases/v0.9.3) - 2023-10-06 diff --git a/README.md b/README.md index 74a44306..f27f6370 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# KFactory 0.9.3 +# KFactory 0.10.0 Kfactory is a [gdsfactory](https://github.com/gdsfactory/gdsfactory)-like tool. It is built with [KLayout](https://klayout.de) as a backend instead of gdstk, but aims to offer the similar featuers. | :exclamation: KFactory is still experimental, expect API changes without notice (even though we try to keep it to a minimum!) | |---------------------------------------------------------------------------------------------------------------------------------| -It is suggest to pin the version of KFactory in `requirements.txt` or `pyproject.toml` with `kfactory==0.9.3` for example. +It is suggest to pin the version of KFactory in `requirements.txt` or `pyproject.toml` with `kfactory==0.10.0` for example. Features similar to gdsfactory: diff --git a/changelog.d/+5140bde5.changed.md b/changelog.d/+5140bde5.changed.md deleted file mode 100644 index c740d6ee..00000000 --- a/changelog.d/+5140bde5.changed.md +++ /dev/null @@ -1 +0,0 @@ -Renamed -> and allow passing kwargs to set attributes of the object \ No newline at end of file diff --git a/changelog.d/+5a6c92b8.added.md b/changelog.d/+5a6c92b8.added.md deleted file mode 100644 index 1169283b..00000000 --- a/changelog.d/+5a6c92b8.added.md +++ /dev/null @@ -1 +0,0 @@ -Added `center` to `rotate` to allow rotating around a center point \ No newline at end of file diff --git a/changelog.d/+5b5ae519.added.md b/changelog.d/+5b5ae519.added.md deleted file mode 100644 index fa29b3b1..00000000 --- a/changelog.d/+5b5ae519.added.md +++ /dev/null @@ -1 +0,0 @@ -Added `rec_dict` to `@cell` decorator to allow for recursive dictionaries \ No newline at end of file diff --git a/changelog.d/+7c33e2c3.changed.md b/changelog.d/+7c33e2c3.changed.md deleted file mode 100644 index fbefbc3f..00000000 --- a/changelog.d/+7c33e2c3.changed.md +++ /dev/null @@ -1 +0,0 @@ -rename autorename_ports to auto_rename_ports \ No newline at end of file diff --git a/changelog.d/+7c6f1941.changed.md b/changelog.d/+7c6f1941.changed.md deleted file mode 100644 index d43616a2..00000000 --- a/changelog.d/+7c6f1941.changed.md +++ /dev/null @@ -1 +0,0 @@ -rename port position to center \ No newline at end of file diff --git a/changelog.d/+84f527b3.added.md b/changelog.d/+84f527b3.added.md deleted file mode 100644 index ce8fd3de..00000000 --- a/changelog.d/+84f527b3.added.md +++ /dev/null @@ -1 +0,0 @@ -Added functionality to `@cell` to allow a user defined cache \ No newline at end of file diff --git a/changelog.d/+c5b45af8.added.md b/changelog.d/+c5b45af8.added.md deleted file mode 100644 index a0933f24..00000000 --- a/changelog.d/+c5b45af8.added.md +++ /dev/null @@ -1 +0,0 @@ -Added invert to `route_manhattan` and allow `routing.optical.route` to add routing_kwargs to the routing function \ No newline at end of file diff --git a/changelog.d/+c66f2595.added.md b/changelog.d/+c66f2595.added.md deleted file mode 100644 index 6e4984f4..00000000 --- a/changelog.d/+c66f2595.added.md +++ /dev/null @@ -1 +0,0 @@ -add Instance.mirror Instance.center \ No newline at end of file diff --git a/changelog.d/+ff9166b0.changed.md b/changelog.d/+ff9166b0.changed.md deleted file mode 100644 index 12204aa5..00000000 --- a/changelog.d/+ff9166b0.changed.md +++ /dev/null @@ -1 +0,0 @@ -Renamed `function_cache` -> `cache` \ No newline at end of file diff --git a/changelog.d/190.fixed.md b/changelog.d/190.fixed.md deleted file mode 100644 index 5f5578aa..00000000 --- a/changelog.d/190.fixed.md +++ /dev/null @@ -1 +0,0 @@ -add Instance setter and getter for center \ No newline at end of file diff --git a/changelog.d/211.fixed.md b/changelog.d/211.fixed.md deleted file mode 100644 index 3efbde6b..00000000 --- a/changelog.d/211.fixed.md +++ /dev/null @@ -1 +0,0 @@ -Fixed typo `enclosure_mape` -> `enclosure_map` \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 9fbb2968..3c9980ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ classifiers = [ requires-python = ">=3.10" -version = "0.9.3" +version = "0.10.0" authors = [ {name = "gdsfactory community", email = "contact@gdsfactory.com"}, ] @@ -259,7 +259,7 @@ showcontent = true # github_url = "https://github.com///" [tool.tbump.version] -current = "0.9.3" +current = "0.10.0" # Example of a semver regexp. # Make sure this matches current_version before diff --git a/src/kfactory/__init__.py b/src/kfactory/__init__.py index 8f3ad1e6..437433c6 100644 --- a/src/kfactory/__init__.py +++ b/src/kfactory/__init__.py @@ -32,7 +32,7 @@ from aenum import constant # type: ignore[import-untyped] -__version__ = "0.9.3" +__version__ = "0.10.0" logger = config.logger diff --git a/src/kfactory/enclosure.py b/src/kfactory/enclosure.py index df224ab9..b14f10c1 100644 --- a/src/kfactory/enclosure.py +++ b/src/kfactory/enclosure.py @@ -562,7 +562,7 @@ def __init__( ( section[0], round(section[1] / dbu), - round(section[2] / dbu), + round(section[2] / dbu), # type: ignore[misc] ) ) @@ -573,7 +573,7 @@ def __init__( ls = LayerSection() self.layer_sections[sec[0]] = ls ls.add_section(Section(d_max=sec[1])) if len(sec) < 3 else ls.add_section( - Section(d_max=sec[2], d_min=sec[1]) + Section(d_max=sec[2], d_min=sec[1]) # type: ignore[misc] ) def __hash__(self) -> int: # make hashable BaseModel subclass