Skip to content

Commit 2071809

Browse files
committed
fix ruff issues
1 parent fb50cf6 commit 2071809

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ meep:
2525

2626
test:
2727
pytest
28+
29+
uv-test:
30+
@for plugin in femwell gmsh meow sax tidy3d klayout vlsir; do \
31+
uv run pytest gplugins/$$plugin; \
32+
done
2833

2934
cov:
3035
pytest --cov=gplugins

gplugins/femwell/mode_solver.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def compute_cross_section_modes(
4242
Defines a "straight" component of the cross_section, and calls compute_component_slice_modes.
4343
4444
Args:
45-
cross_section:
46-
layer_stack:
45+
cross_section: gdsfactory cross_section.
46+
layer_stack: gdsfactory layer_stack.
4747
wavelength: in um.
4848
num_modes: to compute.
4949
order: order of the mesh elements. 1: linear, 2: quadratic.
@@ -126,6 +126,7 @@ def compute_component_slice_modes(
126126
metallic_boundaries: if True, will set the boundaries to be metallic.
127127
n_guess: initial guess for the effective index.
128128
solver: can be slepc or scipy.
129+
material_name_to_index: dictionary mapping material names to refractive indices.
129130
kwargs: kwargs for get_mesh
130131
131132
Keyword Args:

0 commit comments

Comments
 (0)