Search found 7 matches
- Thu Mar 19, 2015 8:34 pm
- Forum: Adding new mechanisms and functions to NEURON
- Topic: Defining a POINTER to be a list
- Replies: 16
- Views: 25603
Re: Defining a POINTER to be a list
How would I make a call to set_pvec in Python? from neuron import h x = 1 foo = h.Foo(0.5) foo.declare_pvec(2) foo.set_pvec(0, x) The last line of the above chunk of code raises the following error: bad stack access: expecting (double *); really (double) NEURON: interpreter stack type error near lin...
- Wed Mar 18, 2015 8:10 pm
- Forum: Adding new mechanisms and functions to NEURON
- Topic: Defining a POINTER to be a list
- Replies: 16
- Views: 25603
Re: Defining a POINTER to be a list
Ah, many thanks for the explanation.
Follow-up question: Is it true that, using the code you supplied above (pvec), I don't need to include in my model a call to setpointer?
Follow-up question: Is it true that, using the code you supplied above (pvec), I don't need to include in my model a call to setpointer?
- Wed Mar 18, 2015 5:52 pm
- Forum: Adding new mechanisms and functions to NEURON
- Topic: Defining a POINTER to be a list
- Replies: 16
- Views: 25603
Re: Defining a POINTER to be a list
Yep, that worked for me.
I guess I can't run this model in parallel?
Code: Select all
Notice: Use of POINTER is not thread safe.
Notice: VERBATIM blocks are not thread safe
- Wed Mar 18, 2015 3:14 pm
- Forum: Adding new mechanisms and functions to NEURON
- Topic: Defining a POINTER to be a list
- Replies: 16
- Views: 25603
Re: Defining a POINTER to be a list
Many thanks! It appears that range variables cannot be arrays as well.
- Tue Mar 17, 2015 9:52 pm
- Forum: Adding new mechanisms and functions to NEURON
- Topic: Defining a POINTER to be a list
- Replies: 16
- Views: 25603
Defining a POINTER to be a list
I have the following NEURON block in a MOD file: NEURON { POINT_PROCESS NMDASynPost POINTER s[2047] RANGE e, i, mg_conc, g, b, g_syn[2047] NONSPECIFIC_CURRENT i } When I run modlunit on the file, I get the following error: model 1.1.1.1 1994/10/12 17:22:51 Checking units of nmdasynpost.mod syntax er...
- Thu Feb 26, 2015 11:20 pm
- Forum: Adding new mechanisms and functions to NEURON
- Topic: Receptor Mechanisms at the Same Location on a Cell
- Replies: 1
- Views: 1425
Receptor Mechanisms at the Same Location on a Cell
I have a point-process NMDA receptor mechanism (NMDASyn) that I'd like to place at the center of my single-compartment neuron. However, rather than have just one instance of NMDASyn, I'd like a new one for every connection my cell makes. Is it OK to have all these instances of NMDASyn placed at the ...
- Mon Feb 23, 2015 2:18 am
- Forum: Adding new mechanisms and functions to NEURON
- Topic: Change the value of a derivative in NET_RECEIVE?
- Replies: 2
- Views: 1937
Change the value of a derivative in NET_RECEIVE?
Is it OK to have an assignment like
x' = x' + 1
in a NET_RECEIVE block, if x' is defined in a DERIVATIVE block?
If this is disallowed, can you recommend a strategy for achieving the same result?
Many thanks,
Dan
x' = x' + 1
in a NET_RECEIVE block, if x' is defined in a DERIVATIVE block?
If this is disallowed, can you recommend a strategy for achieving the same result?
Many thanks,
Dan