Skip to content

Commit

Permalink
fix(dep): remove invalid vtk dep
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Feb 9, 2024
1 parent 1ebeadb commit 7da4ffc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions trame_vtk/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
from trame_client.utils.version import get_version

__version__ = get_version("trame-vtk")


def reference_id(ref):
if ref:
try:
return ref.__this__[1:17]
except Exception:
id_str = str(ref)[-12:-1]
# print('====> fallback ID %s for %s' % (id_str, ref))
return id_str
return "0x0"
2 changes: 1 addition & 1 deletion trame_vtk/widgets/vtk/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from trame_client.widgets.core import AbstractElement

from trame_vtk.modules import common
from trame_vtk.modules.vtk.serializers.utils import reference_id
from trame_vtk import reference_id

try:
import zlib # noqa
Expand Down

0 comments on commit 7da4ffc

Please sign in to comment.