Search found 22 matches

by lcampagn
Thu Oct 23, 2014 2:01 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: NET_RECEIVE is not called when expected
Replies: 8
Views: 3366

Re: NET_RECEIVE is not called when expected

Thanks, Ted, and sorry for the topic creep.
I will watch for these new threads.
by lcampagn
Wed Oct 22, 2014 4:19 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: NET_RECEIVE is not called when expected
Replies: 8
Views: 3366

Re: NET_RECEIVE is not called when expected

Thanks, I see that Sections really are deleted when no more python references exist. Is there an object on which I can call dir() to list all NetCon objects Try h.allobjects("NetCon") Read about allobjects in the Programmer's Reference. This is very close to what I need, but it only prints the resul...
by lcampagn
Mon Jul 21, 2014 8:48 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: NET_RECEIVE is not called when expected
Replies: 8
Views: 3366

Re: NET_RECEIVE is not called when expected

Thank you Ted! That was a bit surprising since some object types persist even if they are not given a reference (Section, for example). Actually, that's expected python behavior. The section is an exception, and if you don't assign it to a reference, it will be difficult to get a handle on this sec...
by lcampagn
Mon Jul 21, 2014 12:32 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: NET_RECEIVE is not called when expected
Replies: 8
Views: 3366

Re: NET_RECEIVE is not called when expected

Thank you Ted! That was a bit surprising since some object types persist even if they are not given a reference (Section, for example).
Is there any way to do this kind of introspection from python? I'd like to be able to generate a structure similar to the output of ModelView for unit testing.
by lcampagn
Wed Jul 16, 2014 4:08 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: NET_RECEIVE is not called when expected
Replies: 8
Views: 3366

NET_RECEIVE is not called when expected

Greetings, I am trying to write a simple point process that uses NET_RECEIVE, but so far I am unable to get any events delivered to the mechanism via NetCon. Here is my simplified mod file: TITLE NetCon test mechanism NEURON { POINT_PROCESS NETTEST RANGE nRecv } ASSIGNED { nRecv } INITIAL { nRecv = ...
by lcampagn
Mon Jul 07, 2014 8:43 pm
Forum: NEURON + Python
Topic: A Python interface for NEURON using ctypes
Replies: 2
Views: 1706

Re: A Python interface for NEURON using ctypes

Are there any particular rough edges you have in mind? To be honest, it's been a few years since I looked, and many of the edges may have been polished over. In general I just found the API a bit unpythonic and cumbersome to use. Examples: - Some objects lack proper classes and simply appear as "ho...
by lcampagn
Mon Jul 07, 2014 6:19 pm
Forum: NEURON + Python
Topic: A Python interface for NEURON using ctypes
Replies: 2
Views: 1706

A Python interface for NEURON using ctypes

Long ago I suggested the possibility of developing a Python interface for NEURON based on the built-in ctypes package. The main advantages would be: 1) it would no longer be necessary to compile the NEURON+Python bindings; instead Python would just directly access the NEURON shared library. This als...