mcdougallab / matlabneuroninterface

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

check that equal sections compare equal #50

Open ramcdougal opened 1 year ago

ramcdougal commented 1 year ago

Now that we have n.allsec() in a pull request, we have multiple independent ways of getting an object corresponding to the same Section. We should verify that different objects that refer to the same Section compare equal and those that don't, don't.

edovanveen commented 1 year ago

Current behaviour (after running example_allsec.m):

>> axon2_new == axon2
Operator '==' is not supported for operands of type 'neuron.Section'.
ramcdougal commented 1 year ago

Hopefully that also means ~= does the same, so nobody tries to make comparisons.