From 19677e3c284b4e0152d23493b4cf3ab7b97e40f9 Mon Sep 17 00:00:00 2001 From: Baptiste Durand Date: Mon, 25 Jan 2021 10:43:55 +0100 Subject: [PATCH] Fix variable name error in previous commit + complete docstring --- ho_homog/geometry/surfaces.py | 2 +- ho_homog/geometry/transformations.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ho_homog/geometry/surfaces.py b/ho_homog/geometry/surfaces.py index 7ce0047..4f389e1 100644 --- a/ho_homog/geometry/surfaces.py +++ b/ho_homog/geometry/surfaces.py @@ -310,7 +310,7 @@ class AbstractSurface(object): def_crv = [] surfs = _wrap_in_list(surfs, "surfs", (PlaneSurface, AbstractSurface)) for s in surfs: - if not surfs.tag: + if not s.tag: s.add_gmsh() dim_tags = [(2, s.tag) for s in surfs] boundary_ = model.getBoundary( diff --git a/ho_homog/geometry/transformations.py b/ho_homog/geometry/transformations.py index aa8f98c..aa9edac 100644 --- a/ho_homog/geometry/transformations.py +++ b/ho_homog/geometry/transformations.py @@ -200,7 +200,7 @@ def rotation_basis(pt_coord, angle, direction, point=None): pt_coord : 1-D array-like 3 coordinates of the point to which the rotation is applied. angle : float - Rotation angle + Rotation angle in radians direction : 1-D array Direction of the axis of rotation, 3 component vector point : 1-D array, optional -- GitLab