mcdougallab / matlabneuroninterface

Interface for connecting NEURON and MATLAB
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

Sections and segment methods should mirror that of Python #61

Open ramcdougal opened 1 year ago

ramcdougal commented 1 year ago

Sections:

>>> [item for item in dir(h.Section()) if item[0] != "_"]
['L', 'Ra', 'allseg', 'arc3d', 'cell', 'children', 'connect', 'diam3d', 'disconnect', 'has_membrane', 'hname', 'hoc_internal_name', 'insert', 'is_pysec', 'n3d', 'name', 'nseg', 'orientation', 'parentseg', 'psection', 'pt3dadd', 'pt3dchange', 'pt3dclear', 'pt3dinsert', 'pt3dremove', 'pt3dstyle', 'push', 'rallbranch', 'same', 'spine3d', 'subtree', 'trueparentseg', 'uninsert', 'wholetree', 'x3d', 'y3d', 'z3d']

Segments:

>>> [item for item in dir(h.Section()(0.5)) if item[0] != "_"]
['area', 'cm', 'diam', 'node_index', 'point_processes', 'ri', 'sec', 'v', 'volume', 'x']
edovanveen commented 1 year ago

I noticed that as = neuron.allsec() should probably be n = neuron.Neuron(); as = n.allsec().

ramcdougal commented 1 year ago

I agree... where does this come up?

ramcdougal commented 1 year ago

For things like sec.n3d() and all the other miscellaneous section methods that are basically wrapping things that can already be done (but not in an object-oriented way) via n., we can add them on the Yale side... I just wanted to make the issue to make sure we didn't forget about them.

ramcdougal commented 9 months ago

We have sec.set_diameter(...) but not sec.diam =