Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
hainm committed Dec 4, 2024
1 parent a1a5f33 commit ffb158a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 3 additions & 0 deletions nglview/widget_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}')")
Expand Down
7 changes: 2 additions & 5 deletions nglview/widget_molstar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ffb158a

Please sign in to comment.