From ffb158a7a12b526536cffe414654d48f0a734ac9 Mon Sep 17 00:00:00 2001 From: Hai Nguyen Date: Wed, 4 Dec 2024 16:34:37 -0500 Subject: [PATCH] more --- nglview/widget_base.py | 3 +++ nglview/widget_molstar.py | 7 ++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nglview/widget_base.py b/nglview/widget_base.py index df3112e4..9e69c004 100644 --- a/nglview/widget_base.py +++ b/nglview/widget_base.py @@ -35,6 +35,9 @@ def _initialize_threads(self): self._handle_msg_thread.daemon = True self._handle_msg_thread.start() + def _handle_nglview_custom_message(self, widget, msg, buffers): + raise NotImplementedError() + def render_image(self): image = widgets.Image() self._js(f"this.exportImage('{image.model_id}')") diff --git a/nglview/widget_molstar.py b/nglview/widget_molstar.py index 59e68107..98277b4e 100644 --- a/nglview/widget_molstar.py +++ b/nglview/widget_molstar.py @@ -74,11 +74,8 @@ def add_structure(self, struc): 'pdb') self._molstar_component_ids.append(struc.id) - @observe('frame') - def _on_frame_changed(self, change): - """set and send coordinates at current frame - """ - self._set_coordinates(self.frame) + def add_component(self, component): + raise NotImplementedError() def add_representation(self, **params): params = _camelize_dict(params)