Skip to content

Commit 30bd3c9

Browse files
committed
Bump version from 0.15.0 to 0.15.0
1 parent 034f5fb commit 30bd3c9

14 files changed

Lines changed: 65 additions & 42 deletions

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
name: ty
1414
entry: uv run --dev ty check
1515
language: system
16-
types_or: [python, jupyter]
16+
types_or: [python]
1717
- repo: https://github.com/astral-sh/ruff-pre-commit
1818
rev: v0.15.6
1919
hooks:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# MEOW (0.14.1)
1+
# MEOW (0.15.0)
22

33
> **M**odeling of **E**igenmodes and **O**verlaps in **W**aveguides
44

justfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ dev:
44
uv pip install -e .
55
uv run pre-commit install
66

7+
bump version="patch":
8+
uvx --python 3.12 --from 'bver-cli==0.1.4' bver bump "{{ version }}"
9+
710
dist:
811
uv run python -m build --wheel
912

pyproject.toml

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ dev = [
2626
"pytest-xdist>=3.6.0",
2727
"pytest>=8.3.0",
2828
"ruff>=0.15.5",
29-
"tbump>=6.0.0",
3029
"tmm>=0.2.0",
3130
"towncrier>=24.0.0",
3231
"ty>=0.0.21"
@@ -55,7 +54,7 @@ dependencies = [
5554
"pyyaml>=6.0.2",
5655
"sax>=0.16.12",
5756
"shapely>=2.1.0",
58-
"tidy3d>=2.8.0,<2.9.0",
57+
"tidy3d>=2.8.0",
5958
"tqdm>=4.67.0",
6059
"trimesh[easy]>=4.6.0"
6160
]
@@ -73,7 +72,19 @@ license = {text = "Apache Software License"}
7372
name = "meow-sim"
7473
readme = "README.md"
7574
requires-python = ">=3.11"
76-
version = "0.14.1"
75+
version = "0.15.0"
76+
77+
[[tool.bver.file]]
78+
src = "README.md"
79+
80+
[[tool.bver.file]]
81+
src = "pyproject.toml"
82+
83+
[[tool.bver.file]]
84+
src = "src/meow/__init__.py"
85+
86+
[tool.bver.git]
87+
actions = ["add-all", "commit", "tag", "push"]
7788

7889
[tool.pytest.ini_options]
7990
addopts = '--tb=short'
@@ -128,11 +139,13 @@ select = ["ALL"]
128139
"*.ipynb" = [
129140
"ANN", # flake8-annotations
130141
"ARG001", # unused-function-argument
142+
"BLE001", # blind-exception
131143
"D", # pydocstyle
132144
"E402", # module-import-not-at-top-of-file
133145
"E501", # line-too-long
134146
"EM101", # raw-string-in-exception
135147
"F821", # undefined-name
148+
"FBT002", # boolean-default-positional-argument
136149
"FBT003", # boolean-positional-value-in-call
137150
"N816", # mixed-case-variable-in-global-scope
138151
"PLC2401", # non-ascii-name
@@ -167,27 +180,5 @@ convention = "google"
167180
[tool.setuptools.packages.find]
168181
where = ["src"]
169182

170-
[tool.tbump]
171-
172-
[[tool.tbump.file]]
173-
src = "README.md"
174-
175-
[[tool.tbump.file]]
176-
src = "pyproject.toml"
177-
178-
[[tool.tbump.file]]
179-
src = "src/meow/__init__.py"
180-
181-
[tool.tbump.git]
182-
message_template = "Bump to {new_version}"
183-
tag_template = "{new_version}"
184-
185-
[tool.tbump.version]
186-
current = "0.14.1"
187-
regex = '''
188-
(?P<major>\d+)
189-
\.
190-
(?P<minor>\d+)
191-
\.
192-
(?P<patch>\d+)
193-
'''
183+
[tool.ty.src]
184+
exclude = ["src/tests/**/*.ipynb"]

src/meow/__init__.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
__author__ = "Floris Laporte"
6-
__version__ = "0.14.1"
6+
__version__ = "0.15.0"
77

88
from meow import (
99
arrays,
@@ -56,15 +56,22 @@
5656
PassivityMethod,
5757
compute_interface_s_matrices,
5858
compute_interface_s_matrix,
59+
compute_mode_amplitudes,
5960
compute_propagation_s_matrices,
6061
compute_propagation_s_matrix,
6162
compute_s_matrix,
6263
compute_s_matrix_sax,
6364
downselect_s,
6465
enforce_passivity,
66+
l2r_matrices,
6567
overlap_matrix,
68+
pi_pairs,
69+
plot_fields,
70+
propagate,
6671
propagate_modes,
72+
r2l_matrices,
6773
select_ports,
74+
split_square_matrix,
6875
track_modes,
6976
tsvd_solve,
7077
)
@@ -202,6 +209,7 @@
202209
"cell",
203210
"compute_interface_s_matrices",
204211
"compute_interface_s_matrix",
212+
"compute_mode_amplitudes",
205213
"compute_modes",
206214
"compute_modes_lumerical",
207215
"compute_modes_tidy3d",
@@ -231,6 +239,7 @@
231239
"invert_mode",
232240
"is_lossy_mode",
233241
"is_pml_mode",
242+
"l2r_matrices",
234243
"magnetic_energy",
235244
"magnetic_energy_density",
236245
"materials",
@@ -241,14 +250,19 @@
241250
"normalize_modes",
242251
"orthonormalize_modes",
243252
"overlap_matrix",
253+
"pi_pairs",
254+
"plot_fields",
244255
"pml_fraction",
245256
"post_process_modes",
257+
"propagate",
246258
"propagate_modes",
259+
"r2l_matrices",
247260
"select_ports",
248261
"silicon",
249262
"silicon_nitride",
250263
"silicon_oxide",
251264
"sort_structures",
265+
"split_square_matrix",
252266
"structures",
253267
"te_fraction",
254268
"track_modes",

src/meow/eme/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,17 @@
1515
overlap_matrix,
1616
)
1717
from meow.eme.propagation import (
18+
compute_mode_amplitudes,
1819
compute_propagation_s_matrices,
1920
compute_propagation_s_matrix,
21+
l2r_matrices,
22+
pi_pairs,
23+
plot_fields,
24+
propagate,
2025
propagate_modes,
26+
r2l_matrices,
2127
select_ports,
28+
split_square_matrix,
2229
track_modes,
2330
)
2431
from meow.eme.solve import (
@@ -29,15 +36,22 @@
2936
"PassivityMethod",
3037
"compute_interface_s_matrices",
3138
"compute_interface_s_matrix",
39+
"compute_mode_amplitudes",
3240
"compute_propagation_s_matrices",
3341
"compute_propagation_s_matrix",
3442
"compute_s_matrix",
3543
"compute_s_matrix_sax",
3644
"downselect_s",
3745
"enforce_passivity",
46+
"l2r_matrices",
3847
"overlap_matrix",
48+
"pi_pairs",
49+
"plot_fields",
50+
"propagate",
3951
"propagate_modes",
52+
"r2l_matrices",
4053
"select_ports",
54+
"split_square_matrix",
4155
"track_modes",
4256
"tsvd_solve",
4357
]

src/meow/gds_structures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __call__(self, poly: FloatArray2D) -> Structure3D:
4040
try:
4141
poly = np.asarray(sg.Polygon(poly).buffer(self.buffer).boundary.coords)
4242
except NotImplementedError as e:
43-
import gdspy # type: ignore[reportMissingImports]
43+
import gdspy
4444

4545
polygonset = gdspy.offset(gdspy.Polygon(poly), 0.25)
4646
if polygonset is None:

src/meow/geometries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def _trimesh(
250250
prism = extrude_polygon(poly, self.z_max * sz - self.z_min * sz)
251251
prism = cast(Trimesh, prism.apply_translation((0, 0, self.z_min * sz)))
252252
if color is not None:
253-
prism.visual.face_colors = _to_rgba(color)
253+
prism.visual.face_colors = _to_rgba(color) # type: ignore[union-attr]
254254
return prism
255255

256256

src/tests/nbs/mmi.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"metadata": {},
88
"outputs": [],
99
"source": [
10+
"import itertools\n",
11+
"\n",
1012
"import gdsfactory as gf\n",
1113
"import jax.numpy as np\n",
1214
"import matplotlib.pyplot as plt\n",
@@ -106,7 +108,7 @@
106108
")\n",
107109
"\n",
108110
"cells = []\n",
109-
"for z_min, z_max in zip(cell_edges[:-1], cell_edges[1:]):\n",
111+
"for z_min, z_max in itertools.pairwise(cell_edges):\n",
110112
" cell = mw.Cell(\n",
111113
" structures=structs,\n",
112114
" mesh=mesh,\n",

src/tests/test_deserialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import numpy as np
2-
from mode_data import MODE_DATA # type: ignore[reportMissingImports]
2+
from mode_data import MODE_DATA
33

44
import meow as mw
55

0 commit comments

Comments
 (0)