Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
j042 committed Feb 12, 2023
1 parent 3f6fb28 commit 39caff3
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 13 deletions.
13 changes: 10 additions & 3 deletions docs/source/extra_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@
f.write(f"### {backend}\n\n")
for option in options.values():
t_str = str(option.allowed_types)
t_str = t_str.replace("<class", "").replace("'", "").replace(">", "")
f.write(f"<details><summary><strong>{option.key}</strong></summary><p>\n")
t_str = (
t_str.replace("<class", "")
.replace("'", "")
.replace(">", "")
)
f.write(
f"<details><summary><strong>{option.key}"
"</strong></summary><p>\n"
)
f.write(f"\n{option.description} \n")
f.write(f"- _allowed types_: {t_str} \n")
f.write(f"</p></details> \n\n")
f.write("</p></details> \n\n")
1 change: 0 additions & 1 deletion examples/create_basic_splines.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import gustaf as gus

if __name__ == "__main__":

line = gus.spline.create.line(np.array([[0, 0, 0], [2, 5, 0], [4, 4, 2]]))
rect = gus.spline.create.box(5, 3)
box = gus.spline.create.box(3, 2, 4)
Expand Down
1 change: 0 additions & 1 deletion examples/create_boxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@


def main():

mesh_faces_box = gus.create.faces.box(
bounds=[[0, 0], [2, 2]], resolutions=[2, 3]
)
Expand Down
1 change: 0 additions & 1 deletion examples/interfaces/nutils_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ def main():


def define_mesh():

v = np.array(
[
[0.0, 0.0],
Expand Down
1 change: 0 additions & 1 deletion examples/show_gmsh.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from gustaf import io

if __name__ == "__main__":

base_samples_path = pathlib.Path("samples/faces")
if not base_samples_path.exists():
raise RuntimeError(
Expand Down
1 change: 0 additions & 1 deletion examples/show_gus.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import gustaf as gus

if __name__ == "__main__":

l_eye = gus.spline.create.disk(0.15)
l_eye.cps += [0.6, 0.2]
l_eye.show_options["c"] = "black"
Expand Down
1 change: 0 additions & 1 deletion gustaf/create/faces.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ def tosimplex(quad, backslash=False):
)

if quad.whatami.startswith("quad"):

# split variants
split_slash = [[0, 1, 2], [2, 3, 0]]
split_backslash = [[0, 1, 3], [3, 1, 2]]
Expand Down
1 change: 0 additions & 1 deletion gustaf/edges.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def _initialize_vedo_showable(self):


class Edges(Vertices):

kind = "edge"

__slots__ = (
Expand Down
1 change: 0 additions & 1 deletion gustaf/faces.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def _initialize_vedo_showable(self):


class Faces(Edges):

kind = "face"

const_edges = helpers.raise_if.invalid_inherited_attr(
Expand Down
1 change: 0 additions & 1 deletion gustaf/vertices.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ def _initialize_vedo_showable(self):


class Vertices(GustafBase):

kind = "vertex"

__slots__ = (
Expand Down
1 change: 0 additions & 1 deletion gustaf/volumes.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def _initialize_vedo_showable(self):


class Volumes(Faces):

kind = "volume"

const_faces = helpers.raise_if.invalid_inherited_attr(
Expand Down

0 comments on commit 39caff3

Please sign in to comment.