ObjId path resolution issue
Created by: subhacom
In case of FieldElementFinfos inside ematrix objects, the ObjId always gets the path with the address of the first element in ematrix.
>>> import moose
>>> a = moose.SynChan('s', 2)
>>> for x in a.id_:
... moose.element(x).synapse.num = 2
...
>>> moose.element('/s[1]/synapse')
<moose.Synapse: id=1736, dataId=0, path=/s[0]/synapse[0]>
>>>
This is not an issue with the pymoose function because a debug print inside the function which creates an ObjId from a path and then prints the ObjId.path as follows:
oid = ObjId(path);
cout << "Original Path " << path << ", Element Path: " << oid.path() << endl;
shows
Original Path /s[1]/synapse, Element Path: /s[0]/synapse[0]
Reported by: subhacom