Skip to content

Commit

Permalink
Merge pull request #80 from the-virtual-brain/EBR-96
Browse files Browse the repository at this point in the history
EBR-96: minor changes in connectivity widget
  • Loading branch information
liadomide authored Sep 24, 2024
2 parents 898f6d0 + 58e0543 commit d0d510b
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 d0d510b

Please sign in to comment.