Skip to content

ObjId path resolution issue #116

@subhacom

Description

@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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions