Skip to content

Commit

Permalink
don't fail on vispy import
Browse files Browse the repository at this point in the history
  • Loading branch information
glyg committed Feb 14, 2024
1 parent ffb1603 commit 998eac3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/tyssue/draw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
from .ipv_draw import sheet_view as sheet_view_3d # noqa
from .plt_draw import create_gif, plot_forces, quick_edge_draw # noqa
from .plt_draw import sheet_view as sheet_view_2d # noqa
from .vispy_draw import sheet_view as sheet_view_vispy # noqa

try:
from .vispy_draw import sheet_view as sheet_view_vispy # noqa
except OSError:
print("vispy won't work")
sheet_view_vispy = None


def sheet_view(sheet, coords=["x", "y", "z"], ax=None, mode="2D", **draw_specs_kw):
Expand Down

0 comments on commit 998eac3

Please sign in to comment.