Search found 41 matches

by figoyouwei
Tue Nov 19, 2013 8:00 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: simple internal calcium concentration
Replies: 8
Views: 7990

Re: simple internal calcium concentration

thanks Ted, I got it now, it works :) and I appreciated your sharing of resource.
by figoyouwei
Sat Nov 16, 2013 1:21 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: simple internal calcium concentration
Replies: 8
Views: 7990

Re: simple internal calcium concentration

Hi Ted, For this topic, I understand that one can initialize ion concentration in the mod file. In calcium case, e.g. parameter it <cai0 = some value> and <cao0 = soma value>. It works fine, but that means if there are ten different calcium mod files, one has to specify the parameters in all these t...
by figoyouwei
Wed Nov 06, 2013 12:20 pm
Forum: NEURON + Python
Topic: reset NEURON
Replies: 10
Views: 7755

Re: reset NEURON

thanks for the syntax "pc.gid_clear()"

but what is exactly the syntax for "unref all the NetCon" ? When for example, all the NetCon objects are stored in a list call "nclist" ?
by figoyouwei
Thu Oct 03, 2013 10:02 pm
Forum: NEURON + Python
Topic: reset NEURON
Replies: 10
Views: 7755

Re: reset NEURON

Hi Hines:

How exactly to do these three things in hoc and in PyNeuron ? thanks !

ParallelContext.gid_clear()
unref all the NetCon
unref all the cell objects.
by figoyouwei
Sun Dec 16, 2012 9:35 am
Forum: Anatomically detailed models
Topic: parents and children of a section
Replies: 3
Views: 3730

Re: parents and children of a section

Hi Ted:

I wonder, is there a sec.get_parent_loc() like function ? e.g. if dend (connected at pos 0) is a child of soma (connected at pos 1). If do : dend.get_parent_loc(), it will return "soma, 1" ? How could one get that info ? Thanks !
by figoyouwei
Fri Jan 13, 2012 11:42 am
Forum: NEURON + Python
Topic: Finding available variables in each section
Replies: 4
Views: 2645

Re: Finding available variables in each section

Thanks Hines ! The 'n' print is what I want :-)
by figoyouwei
Thu Dec 29, 2011 10:43 pm
Forum: NEURON + Python
Topic: Finding available variables in each section
Replies: 4
Views: 2645

Re: Finding available variables in each section

Hi Hines : I have the same question ! Although it has been asked by another post by mattioni, which the indirect way is "loop and check" whether a variable exists, but ... Is there any direct way, like <$ dir(soma)> function which automatically lists all the range variables accessible from...
by figoyouwei
Tue Dec 27, 2011 1:20 am
Forum: NEURON + Python
Topic: PyNeuron Model View Error while calling the Py Class
Replies: 5
Views: 2737

Re: PyNeuron Model View Error while calling the Py Class

Thanks, Ted ! The model view code is useful ~ I guess here the main Python-Neuron problem is that ... when you load a hoc by calling h.load_file("bla.hoc"), the neuron model is callable from hoc. For example, suppose the neuron is called MSN in original hoc implementation. Then you can cal...
by figoyouwei
Thu Dec 15, 2011 11:06 am
Forum: NEURON + Python
Topic: PyNeuron Model View Error while calling the Py Class
Replies: 5
Views: 2737

Re: PyNeuron Model View Error while calling the Py Class

Hi

Maybe I ask the other way around, how can I generate "mview.hoc" file manually instead of clicking on the GUI->Tools-> Model View ?

Youwei
by figoyouwei
Wed Dec 14, 2011 6:54 am
Forum: NEURON + Python
Topic: PyNeuron Model View Error while calling the Py Class
Replies: 5
Views: 2737

PyNeuron Model View Error while calling the Py Class

Dear all: With python, I am creating a cell class in a file name "MSP.py". In the MSP.py, basically I define the cell class like class Cell(object): ... self.soma = h.Section(name='soma',cell=self) self.dend = h.Section(name='dend',cell=self) self.dend.connect(self.soma(1),0) ... I can h.r...
by figoyouwei
Mon Aug 09, 2010 6:11 pm
Forum: OS X
Topic: python neuron install to import neuron on python IDLE
Replies: 0
Views: 1956

python neuron install to import neuron on python IDLE

Hallo viewers : I had problems by import neuron on Python Shell, with the help of hines, The following works by my MacBook Pro Version 10.6.4 , Processor :2.26 GHz Intel Core 2 Duo ************************************* 1. Install iv $ sh build.sh $ ./configure --prefix=/Applications/nrn71/iv --host=...