Skip to content

Commit

Permalink
feat: updating viewer to use base class
Browse files Browse the repository at this point in the history
This new structure should make it easy to implement different plotting
packages without having to write much code.
Simply inheret from BaseModelPlotter and reimplement the functions
* _add_surface
* _add_vector_marker
* _add_points
  • Loading branch information
Lachlan Grose committed Sep 14, 2021
1 parent 6354712 commit 7c314a0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions LoopStructural/visualisation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@
except:
logger.error('Cannot use sphinx scraper, pip install -r docs/requirements.txt')
try:
from .model_visualisation import LavaVuModelViewer
except:
from .lavavu import LavaVuModelViewer
except ImportError:
logger.error("Missing lavavu, can't import LavaVuModelViewer")

try:
from .vtk_viewer import VtkExporter
except ImportError:
logger.error("No meshio")
from ._scalar_field import ScalarField

0 comments on commit 7c314a0

Please sign in to comment.