Skip to content

Commit 941b515

Browse files
committed
fix docs
1 parent ed7450c commit 941b515

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/notebooks/femwell_02_heater.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from gdsfactory.technology import LayerStack
1212
from skfem.io import from_meshio
1313

14-
from gplugins.gmsh.mesh import create_physical_mesh, get_mesh
14+
from gplugins.gmsh import create_physical_mesh, get_mesh
1515

1616
gf.config.rich_output()
1717
PDK = get_generic_pdk()

gplugins/gmsh/mesh.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
)
1919

2020

21-
def define_entities(model, shapes_dict: OrderedDict, atol=1e-3):
21+
def define_entities(model, shapes_dict: OrderedDict, atol: float = 1e-3):
2222
"""Adds the polygons and lines from a "shapes_dict" as physical entities in the pygmsh model "model".
2323
2424
Args:
@@ -127,7 +127,7 @@ def mesh_from_polygons(
127127
verbosity: bool | None = False,
128128
atol: float | None = 1e-4,
129129
periodic_lines: tuple[(str, str)] | None = None,
130-
):
130+
) -> meshio.Mesh:
131131
"""Return a 2D mesh from an ordered dict of shapely polygons.
132132
133133
Args:
@@ -222,7 +222,7 @@ def mesh_from_polygons(
222222
return mesh
223223

224224

225-
def create_physical_mesh(mesh, cell_type):
225+
def create_physical_mesh(mesh, cell_type) -> meshio.Mesh:
226226
cells = mesh.get_cells_type(cell_type)
227227
cell_data = mesh.get_cell_data("gmsh:physical", cell_type)
228228
points = mesh.points

gplugins/gmsh/parse_component.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def create_2D_surface_interface(
176176
layer_polygons: shapely polygons.
177177
thickness_min: distance to define the interfacial region towards the polygon.
178178
thickness_max: distance to define the interfacial region away from the polygon.
179-
simplify: simplification factor for over-parametrized geometries
179+
simplify: simplification factor for over-parametrized geometries.
180180
181181
Returns:
182182
shapely interface polygon

0 commit comments

Comments
 (0)