Skip to content

Converting between body_ids and uids doesn't preserve order #55

@Dominic-DallOsto

Description

@Dominic-DallOsto

I had this issue where I assumed connections.get_node_attribute(connections.get_uids_from_bodyids(body_ids), "name") would return the names for each body_id, but because get_uids_from_bodyids doesn't preserve order this isn't guaranteed to be true.

In the same way, connections.get_uids_from_bodyids(connections.get_uids_from_bodyids(uids)) != uids.

I guess this makes sense because there isn't necessarily a 1:1 correspondance between body_ids and uids if some neurons are split. Maybe this could preserve order as long as there aren't any split or merged neurons though? Or we could add a function to get the attributes for a list of neuron body_ids? I'm not sure exactly what the best option would be

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions