From: Niraj D. <ni...@nc...> - 2013-01-11 11:13:47
|
Hi again, Katja, You've asked the following 3 questions: > 1. I'm trying to get information about input and output messages for the > HHChannel object (...) > 2. I've set up two HHGates (X and Y) for HHChannel, > however when I try to print the output messages for a channel it reports > me 3 output messages (...) > 3. When I try to print input messages for a channel it reports me: > /model/soma /model/soma/Na_channel > /model/soma /model/soma/Na_channel I'll first try to address questions 1 and 3: - Can you tell me why you're trying to find the input and output messages? It will help me answer your questions better. - If you just want to explore the model structure, then what you're doing in (1) is correct. Even simpler is to use the moose.showmsg() function. However, I am getting the same errors that you have reported. I will see if Subhasis can tackle this. - An alternative to the above methods is using the 'neighbours' dictionary. For example, to find all the channels connected to a compartment, just do: soma.neighbours[ 'channel' ] This gives you a tuple of all the objects connected to 'soma' via the 'channel' Finfo. - You may be right that the "VmOut -> Vm" message has already been setup automatically before. The correct way to connect a compartment and a channel is: moose.connect(soma, 'channel', Na_channel, 'channel') 'channel' is a shared message which will allow a Compartment to send Vm to channels, but also receive current back (in the form of Gk, Ek). If your compartment and channel are already connected via the 'channel' finfos, then you don't need to make the "VmOut -> Vm" connection. You can check if the "channel" message has already been setup by using the "soma.neighbours[ 'channel' ]" example given above. I am not sure if you are building your model by hand (by creating 'Compartment' and 'HHChannel' objects manually, and connecting them using moose.connect()), or if you're loading in a model using, say, the NeuroML reader. In the case of loading in models, the "channel" message is already set up for you. - If you're interested in looking at all the fields/finfos of a class/object, you can do: hh = moose.HHChannel( '/hh' ) moose.doc( hh ) or simply: moose.doc( moose.HHChannel ) The documentation for all MOOSE classes and functions is compiled and available here: http://moose.ncbs.res.in/component/option,com_wrapper/Itemid,94/ You will find the same file in your 'moose/Docs/user' folder as well. Regarding question 2, this is expected behaviour. All the 3 gates (X, Y, Z) are made immediately in a dummy form when a channel is created. Only when you set the Xpower, Ypower or Zpower, the gates are actually created. Do let us know if there are any other problems. Best, Niraj |