-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to use HippoUnit with hocobjects? #62
Comments
Hi, As the easiest solution, I would suggest to let HippoUnit instantiate your hoc template and modify your parameters within the initialise function of the ModelLoader class of HippoUnit. model = ModelLoader_multi_run_ca1_pc_nsg_EA(mod_files_path = mod_files_path) Please let me know whether you like this solution, or if you have any questions regarding it. If you still think that the only solution for your project would be to use the hocobject as input to HippoUnit, I can try to find the way to modify HippoUnit accordingly. For this, can you please send me an example hoc template I can use for testing? Best, Sára |
Hi, I see your solution. Your kind of updating the parameters was like I did it on my project when I wrote it the first time. I forgot that totally to do it like that, because I changed to an automatic way of iterating and setting everything accordingly, which only works with having access to h.psection() dictionary for the hocobject. Your solution is very helpful in this case, thanks. I just have to implement the HippoUnit runs now as a loop over the range of all parameter combinations, and I will hardcode the indices of the parameter combinations which match the ion channel and conductance names of the sections to update them by adapting your method. The advantage of using the HocObject would be that I don't have to set the parameters anymore on it and can just use it straight out of my pipeline. Thanks Thanks |
Hi, I implemented my parameters into your subclass and will attach how I did it. You will find there a way to dynamically set parameters instead of using 100 lines to manually set each of them. To use it in Jupyter as an addition, you have to set
So it is working now as expected. Thanks. |
Hello all,
as my title states, I would like to know if there is a way or pragmatic workaround to use HippoUnit with HocObjects.
To clarify what I mean:
In HippoUnit the cells get instantiated in the scope with the hocinterpreter like
I would like to instantiate my cells for hippounit from a python hocobject cell, i.e. use a hocobject as hippounit input.
My python cell, which is a hocobject, looks like this:
cell = h.templatename()
In my case, I update this hocobject cell with new parameter values (like ion channel conductances) and as an instantiated hocobject it doesn't change/overwrite the hoc file with which the cell got created.
I would like to use this then updated hocobject cell as input for HippoUnit, so I could run the tests over the updated cell with updated parameter values and an unchanged hoc file.
I see a relatively rough workaround for it atm:
If I would create a new hoc file each time for it, I could just let HippoUnit run each time for a new hoc file. This works to some extend but as the number of cells increases it becomes worse and I don't see a way to automate this process of creating new hoc files.
Any ideas?
Thanks in advance
The text was updated successfully, but these errors were encountered: