Skip to content

Commit

Permalink
Bump to 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-goeldi committed Dec 5, 2023
1 parent d7ee949 commit a741a25
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 18 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,31 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang

<!-- towncrier release notes start -->

## [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


Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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:

Expand Down
1 change: 0 additions & 1 deletion changelog.d/+5140bde5.changed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/+5a6c92b8.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/+5b5ae519.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/+7c33e2c3.changed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/+7c6f1941.changed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/+84f527b3.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/+c5b45af8.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/+c66f2595.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/+ff9166b0.changed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/190.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/211.fixed.md

This file was deleted.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
]
Expand Down Expand Up @@ -259,7 +259,7 @@ showcontent = true
# github_url = "https://github.com/<user or organization>/<project>/"

[tool.tbump.version]
current = "0.9.3"
current = "0.10.0"

# Example of a semver regexp.
# Make sure this matches current_version before
Expand Down
2 changes: 1 addition & 1 deletion src/kfactory/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

from aenum import constant # type: ignore[import-untyped]

__version__ = "0.9.3"
__version__ = "0.10.0"

logger = config.logger

Expand Down
4 changes: 2 additions & 2 deletions src/kfactory/enclosure.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def __init__(
(
section[0],
round(section[1] / dbu),
round(section[2] / dbu),
round(section[2] / dbu), # type: ignore[misc]
)
)

Expand All @@ -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
Expand Down

0 comments on commit a741a25

Please sign in to comment.