Skip to content

Commit

Permalink
EBR-96: minor changes in connectivity widget
Browse files Browse the repository at this point in the history
  • Loading branch information
915-Misan-Teodora committed Sep 24, 2024
1 parent 898f6d0 commit 58e0543
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions tvbwidgets/ui/connectivity_ipy/connectivity_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def on_change_edges(change):
self.output]
self.output.display_actor(points)
self.output.display_actor(edges)
self.output.update_plot()

def __refresh_connectivity(self):
self.output.plotter.clear()
Expand Down
4 changes: 4 additions & 0 deletions tvbwidgets/ui/connectivity_ipy/outputs_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
from enum import Enum
import ipywidgets as widgets
import pyvista
from tvbwidgets.core.logger.builder import get_logger

LOGGER = get_logger(__name__)


class Output3D(Enum):
Expand Down Expand Up @@ -38,6 +41,7 @@ def hide_actor(self, actor):

def update_plot(self):
with self:
LOGGER.info("update plot")
self.clear_output(wait=True)
self.plotter.show()

Expand Down

0 comments on commit 58e0543

Please sign in to comment.