Skip to content

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed May 13, 2024
1 parent 64d070f commit e544ebf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 22 deletions.
2 changes: 0 additions & 2 deletions docs/userguide/basics.model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ Elements

Elements are defined by the nodes they connect to and a section.


>>>


Parts
=====
14 changes: 0 additions & 14 deletions src/compas_fea2/UI/viewer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
"""
********************************************************************************
Viewer
********************************************************************************
.. currentmodule:: compas_fea2.UI.viewer
.. autosummary::
:toctree: generated/
FEA2Viewer
"""

from .viewer import FEA2Viewer
from .shapes import (
_BCShape,
Expand Down
13 changes: 7 additions & 6 deletions src/compas_fea2/UI/viewer/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
from compas.geometry import Translation
from compas.geometry import Vector
from compas.geometry import sum_vectors
from compas_view2.app import App
from compas_view2.objects import Collection
from compas_view2.shapes import Arrow
from compas_view2.shapes import Text

from compas_fea2.model.bcs import FixedBC
from compas_fea2.model.bcs import PinnedBC
Expand All @@ -26,8 +22,13 @@
from compas_fea2.UI.viewer.shapes import PinBCShape
from compas_fea2.UI.viewer.shapes import RollerBCShape

# def hextorgb(hex):
# return tuple(i / 255 for i in hex_to_rgb(hex))
try:
from compas_view2.app import App # type: ignore
from compas_view2.objects import Collection # type: ignore
from compas_view2.shapes import Arrow # type: ignore
from compas_view2.shapes import Text # type: ignore
except Exception:
pass


class FEA2Viewer:
Expand Down

0 comments on commit e544ebf

Please sign in to comment.