Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Speed in TVB

16 views
Skip to first unread message

MICHELANGELO FABBRIZZI

unread,
Sep 22, 2024, 11:25:27 AM9/22/24
to TVB Users
Dear TVB experts,

I would like to understand if it is possible to use a matrix with different velocities instead of just a scalar value for the white matter speed. I am passing it as below, is it correct?

white_matter = connectivity.Connectivity.from_file(path_to_input_data+'sub-01_Connectome.zip') # zip file with connectome weights and tract lengths
white_matter.speed = numpy.loadtxt(path_to_input_data+'sub-01_conduction_velocities.txt', dtype=float) #this uses the map of conduction velocity
white_matter.speed[white_matter.speed==0]=0.0000000001 # for elements with speed =0 replaces with 10^-10 to avoid possible issues
white_matter.configure()

Appreciated, regards,

Mic
Reply all
Reply to author
Forward
0 new messages