Skip to content

How to locate mech var index in the model exported by bbcorewrite? #3440

@ArcheyChen

Description

@ArcheyChen

Overview of the feature

I tried to ask this question on The NEURON Forum, but the Confirmation of registration blocked me, so I can only ask question here.

I'm trying to edit the coreneuron data exported using function bbcorewrite, but I found that it's impossible to locate the mech var index.

like I have 10 Iclamps, and I want to modify the 3rd Iclamp's amp value, but I can't just edit the 3rd var in the xx_2.dat, because it's already sorted in some magical way.

I tried using the object_id(mech_obj,1) command, but it only return the order that I created the mech objects, it doesn't help.

I tried setting coreneuron.cell_permute = 0 or h.cvode.cache_efficient(0), but the vars will be permuted anyway.

Adding a custom range var (like id) to mech will be a temporary solution, but if the model gets complicated, it's not an efficient way.

How to get the var export order in NEURON? I tried looking for the code but didn't find where the order was changed.

And it doesn't seem like it have a API to export the info.

BTW: I found some macro defines in coreneuron's code synapseID and selected_for_report , it' seems like coreneuron don't know how to find the vars either, it also requires user to

Foreseeable Impact

Add a single API in Python, which can tell the user mech var export order.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions