I've generated a detailed multi-compartment cell model with three parameter sets, each one generated for a different distribution of a particular channel throughout the dendrite. I have my code setup so that, in my init.hoc file, I load the parameters with
Code: Select all
load_file("L5_Params_~.hoc)
Code: Select all
load_file("init_params_AddNa.hoc")
Ideally, I'd like to be able to quickly switch between my parameter sets without having to quit NEURON and reload my init.hoc file with a different parameter set. I thought that I would be able to do this by simply calling the same two commands highlighted above from the command line, but with a different parameter set dictated by a different ~ choosing a different file. However, when I do this I get no changes in my model. The file has definitely been read (for instance, there is a particular parameter called "decay" in my model, and in the parameter files this is encoded as PARAM_decay... and if I look at that PARAM_decay value, it is updated), but there are no changes in the model itself (the "init_paramas_AddNa.hoc" file sets decay=PARAM_decay and uses the value of decay in the model... however, the value of decay doesn't change even though PARAM_decay has).
This is a relatively minor issue that is easy to work around, but I imagine that somewhere down the line being able to make a switch like this might be more necessary, especially when I begin running some automated in silico experiments on the model... not to mention understanding what's going on here will improve my understanding of NEURON. Any help here would be appreciated! I apologize for not posting full code, but as my model is essentially complete I don't feel comfortable posting the code in its entirety before it is published. I'm happy to post additional bits and pieces of the code as necessary, or perhaps communicate with anyone more directly.
Thanks!
Scott