Describe the bug
Dear all, I am trying to use my own data for the cortex (not the default values), compute the local connectivity matrix with different parameters and save it to a matlab file. For the default cortex it was shown how to do it at (https://groups.google.com/g/tvb-users/c/cyHKATuXfTU/m/CI-H9_kKBgAJ) .
In order to make it work with my data it was suggested at this post (https://groups.google.com/g/tvb-users/c/8RNS6cNxUzs) to use the class "surfaces.CorticalSurface" to load my cortex.
So I am trying with the below code, derived from the link above, however I get an error 'CorticalSurface' object has no attribute 'local_connectivity'
Steps to reproduce
*%matplotlib widget
import matplotlib.pyplot as plt
import numpy
from tvb.simulator.plot.head_plotter_3d import HeadPlotter3D
from tvb.datatypes import surfaces, connectivity, local_connectivity
from scipy import io as sio
ctx = surfaces.CorticalSurface.from_file("/sub-01_cortex.zip")
loc_conn = local_connectivity.LocalConnectivity(cutoff=20.0, surface=ctx)
loc_conn.equation.parameters['sigma'] = 10.0
loc_conn.equation.parameters['amp'] = 1.0
loc_conn.equation.parameters['midpoint'] = 0.0
loc_conn.equation.parameters['offset'] = 0.0
ctx.local_connectivity.matrix = None
ctx.local_connectivity = loc_conn
ctx.coupling_strength = numpy.array([0.0115])
ctx.configure()
ctx.compute_local_connectivity()
sio.savemat('local_connectivity'+ '.mat', {'local_connectivity': ctx.local_connectivity.matrix})*
Expected results
Compute the local connectivity matrix with my cortex and the parameters above and save the computed matrix to a file in matlab format
Actual results
See screenshot of code and error.

Additional information
TVB2.7.2
MacOS12.6.8
I can provide the cortex.zip file if you provide an email
Describe the bug
Dear all, I am trying to use my own data for the cortex (not the default values), compute the local connectivity matrix with different parameters and save it to a matlab file. For the default cortex it was shown how to do it at (https://groups.google.com/g/tvb-users/c/cyHKATuXfTU/m/CI-H9_kKBgAJ) .
In order to make it work with my data it was suggested at this post (https://groups.google.com/g/tvb-users/c/8RNS6cNxUzs) to use the class "surfaces.CorticalSurface" to load my cortex.
So I am trying with the below code, derived from the link above, however I get an error 'CorticalSurface' object has no attribute 'local_connectivity'
Steps to reproduce
*%matplotlib widget
import matplotlib.pyplot as plt
import numpy
from tvb.simulator.plot.head_plotter_3d import HeadPlotter3D
from tvb.datatypes import surfaces, connectivity, local_connectivity
from scipy import io as sio
ctx = surfaces.CorticalSurface.from_file("/sub-01_cortex.zip")
loc_conn = local_connectivity.LocalConnectivity(cutoff=20.0, surface=ctx)
loc_conn.equation.parameters['sigma'] = 10.0
loc_conn.equation.parameters['amp'] = 1.0
loc_conn.equation.parameters['midpoint'] = 0.0
loc_conn.equation.parameters['offset'] = 0.0
ctx.local_connectivity.matrix = None
ctx.local_connectivity = loc_conn
ctx.coupling_strength = numpy.array([0.0115])
ctx.configure()
ctx.compute_local_connectivity()
sio.savemat('local_connectivity'+ '.mat', {'local_connectivity': ctx.local_connectivity.matrix})*
Expected results
Compute the local connectivity matrix with my cortex and the parameters above and save the computed matrix to a file in matlab format
Actual results
See screenshot of code and error.

Additional information
TVB2.7.2
MacOS12.6.8
I can provide the cortex.zip file if you provide an email