Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab committed Sep 19, 2023
1 parent ed7450c commit 941b515
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/notebooks/femwell_02_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from gdsfactory.technology import LayerStack
from skfem.io import from_meshio

from gplugins.gmsh.mesh import create_physical_mesh, get_mesh
from gplugins.gmsh import create_physical_mesh, get_mesh

gf.config.rich_output()
PDK = get_generic_pdk()
Expand Down
6 changes: 3 additions & 3 deletions gplugins/gmsh/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
)


def define_entities(model, shapes_dict: OrderedDict, atol=1e-3):
def define_entities(model, shapes_dict: OrderedDict, atol: float = 1e-3):
"""Adds the polygons and lines from a "shapes_dict" as physical entities in the pygmsh model "model".
Args:
Expand Down Expand Up @@ -127,7 +127,7 @@ def mesh_from_polygons(
verbosity: bool | None = False,
atol: float | None = 1e-4,
periodic_lines: tuple[(str, str)] | None = None,
):
) -> meshio.Mesh:
"""Return a 2D mesh from an ordered dict of shapely polygons.
Args:
Expand Down Expand Up @@ -222,7 +222,7 @@ def mesh_from_polygons(
return mesh


def create_physical_mesh(mesh, cell_type):
def create_physical_mesh(mesh, cell_type) -> meshio.Mesh:
cells = mesh.get_cells_type(cell_type)
cell_data = mesh.get_cell_data("gmsh:physical", cell_type)
points = mesh.points
Expand Down
2 changes: 1 addition & 1 deletion gplugins/gmsh/parse_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def create_2D_surface_interface(
layer_polygons: shapely polygons.
thickness_min: distance to define the interfacial region towards the polygon.
thickness_max: distance to define the interfacial region away from the polygon.
simplify: simplification factor for over-parametrized geometries
simplify: simplification factor for over-parametrized geometries.
Returns:
shapely interface polygon
Expand Down

0 comments on commit 941b515

Please sign in to comment.