In [2]:
from tvb.simulator.lab import *
In [3]:
white_matter = connectivity.Connectivity(load_default=True)
#Compute cumulative input for each region
node_data = white_matter.weights.sum(axis=1)
scaling_factor = node_data.max()
In [4]:
if IMPORTED_MAYAVI:
xmas_balls(white_matter, node_data=node_data / scaling_factor)