Search found 41 matches

by figoyouwei
Sun Apr 13, 2014 4:21 pm
Forum: Anatomically detailed models
Topic: Questions on import3d and export tools
Replies: 15
Views: 18150

Re: Questions on import3d and export tools

Dear Ted, I think my question also belongs to this topic, though ... From a specific example to a general question: the points applied to the pt3dadd() function can be relative, an example below taken from the Neuron Book. soma { pt3dadd(0, 0, 0, 30) pt3dadd(30, 0, 0, 30) } apical { pt3dadd(0, 0, 0,...
by figoyouwei
Fri Mar 14, 2014 10:02 pm
Forum: Anatomically detailed models
Topic: Export PlotShape
Replies: 6
Views: 9949

Export PlotShape

Dear Ted,

What is the hoc command to export a PlotShape from NEURON into a publication-ready figure ?

For instance, like the Figure 3a in one of Magee's recent papers ?
http://www.nature.com/nature/journal/v4 ... 11554.html

Thanks.
by figoyouwei
Wed Feb 05, 2014 1:01 am
Forum: NEURON + Python
Topic: Recording changes in Impedance in NEURON (Python)
Replies: 14
Views: 11870

Re: Recording changes in Impedance in NEURON (Python)

Dear Ted, The impedance example works, thank you. Though it brought up another issue which I didn't run into because I always used to simulate with run() command. In hoc, after setting up a Vector. objref vec vec = new Vector() vec.record(&soma.v(0.5)) Both run() and while (t <= tstop) { fadvanc...
by figoyouwei
Tue Jan 28, 2014 10:09 pm
Forum: NEURON + Python
Topic: Recording changes in Impedance in NEURON (Python)
Replies: 14
Views: 11870

Re: Recording changes in Impedance in NEURON (Python)

Dear Ted,

Is that possible for record impedance with the Vector.record function in the hoc ?

for example, something similar syntax like that to avoid putting it in a loop ?
vec.record(&soma, imp.input(0.5))

Thank you
by figoyouwei
Thu Jan 09, 2014 12:15 pm
Forum: NEURON hacks
Topic: about those three "spine" methods in hoc
Replies: 2
Views: 13761

Re: about those three "spine" methods in hoc

thank you for beating this.
by figoyouwei
Tue Jan 07, 2014 10:05 pm
Forum: NEURON hacks
Topic: about those three "spine" methods in hoc
Replies: 2
Views: 13761

about those three "spine" methods in hoc

Dear, There are 3 spine methods default in hoc, getSpineArea(), setSpineArea() and spine3d() ? For example, basically to get spine area, one may spineArea access spinehead for (x) spineArea += area(x) access spineneck for (x) spineArea += area(x) which is the conventional way to get spine area. So m...
by figoyouwei
Wed Jan 01, 2014 5:21 pm
Forum: The GUI
Topic: The drawing circle example, flush ?
Replies: 9
Views: 18845

Re: The drawing circle example, flush ?

Hi Ted, It turns out: "An instance of the Graph class manages a window on which x-y plots can be drawn by calling various member functions. The first form immediately maps the window to the screen. With a 0 argument the window is not mapped but can be sized and placed with the view() function.&...
by figoyouwei
Fri Dec 27, 2013 5:41 pm
Forum: The GUI
Topic: The drawing circle example, flush ?
Replies: 9
Views: 18845

Re: The drawing circle example, flush ?

It works ! One minor non-functional thing on this example. Case 1: just g.size, it would bring up ONE panel with default size and g.sized coordinates. It works fine. g.size(-1, 1, -1 ,1) Case 2: use g.view, this would bring up TWO panels then, one with wanted size and coordinates. It works perfect, ...
by figoyouwei
Thu Dec 26, 2013 4:19 pm
Forum: The GUI
Topic: The drawing circle example, flush ?
Replies: 9
Views: 18845

The drawing circle example, flush ?

Dear Ted, I got this line-Graph example from the documentation. objref g g = new Graph() t = 0 g.addexpr("sin(t)") g.xexpr("cos(t)") g.begin() for(t=0; t<=2*PI+0.1; t=t+0.1){ g.plot(t) } g.flush() But is it supposed to display the circle on the panel ? didn't see any, confused ...
by figoyouwei
Mon Dec 23, 2013 12:55 am
Forum: NEURON + Python
Topic: Speed: why running in Python is MUCH slower as in GUI ???
Replies: 2
Views: 2661

Re: Speed: why running in Python is MUCH slower as in GUI ??

It works normal again, when I put things in template ... which is even weirder ...
Let me diagnose it and confirm again myself before "wasting" your time on this.
thank you Ted for the reply.
by figoyouwei
Fri Dec 20, 2013 3:41 pm
Forum: NEURON + Python
Topic: Speed: why running in Python is MUCH slower as in GUI ???
Replies: 2
Views: 2661

Speed: why running in Python is MUCH slower as in GUI ???

Dear Hines, I am surprised, that no previous posts asked about this question ... but ... I confirmed this quite a few times, trying to get rid of every possible loads on Python. When running a small model, the time difference is tolerable, so I didn't notice that before ... I just found that running...
by figoyouwei
Tue Dec 17, 2013 5:29 pm
Forum: NEURON hacks
Topic: little confusion about 3D
Replies: 3
Views: 16531

Re: little confusion about 3D

thank you Ted for pointing out chapters, I guess diam3d() is the correct way to print out edge diam then :)
by figoyouwei
Tue Dec 17, 2013 1:56 pm
Forum: NEURON hacks
Topic: little confusion about 3D
Replies: 3
Views: 16531

little confusion about 3D

Dear, Given this simply example, I would expect that diam(0)=5 and diam(1)=1, don't understand why diam(0)=diam(0.1) and diam(0.9)=diam(1) ? Thank you. create dend access dend dend { pt3dadd(10, 0, 0, 5) pt3dadd(10, 10, 0, 1) nseg = 5 } print L, diam(0) print L, diam(0.1) print L, diam(0.3) print L,...
by figoyouwei
Wed Dec 11, 2013 12:58 pm
Forum: NEURON hacks
Topic: About the old NEURON reference manual
Replies: 1
Views: 14761

About the old NEURON reference manual

Dear, I came across a function called "fstim()", it works quite handy, it helps to see the doc string though. The current document refers to it as: Consider this obsolete. Nevertheless, it does work. See the old NEURON reference manual. So just a general question, where can we see this &qu...
by figoyouwei
Fri Nov 22, 2013 11:08 am
Forum: NEURON hacks
Topic: Equation behind Function Table
Replies: 4
Views: 16597

Equation behind Function Table

Hi, I am aware that Function Table works when one gives e.g. an array of voltage and an array of variable value. I want to know what is the linear fit equation behind that ? Basically I don't want to use such Function Table thing, instead just define a function inside the mod file. How I can do that...