Search found 41 matches

by figoyouwei
Sat Nov 08, 2014 8:16 am
Forum: Anatomically detailed models
Topic: Export PlotShape
Replies: 6
Views: 9879

Re: Export PlotShape

thank you, exec_menu() is good !
by figoyouwei
Fri Nov 07, 2014 5:25 am
Forum: Anatomically detailed models
Topic: Export PlotShape
Replies: 6
Views: 9879

Re: Export PlotShape

and aside from export resolution, how to specify "ShapeStyle" in hoc code which can be done by GUI ?
by figoyouwei
Fri Nov 07, 2014 5:04 am
Forum: Anatomically detailed models
Topic: Export PlotShape
Replies: 6
Views: 9879

Re: Export PlotShape

Is there a way to specify the resolution in printfile() ? The default one is pretty coarse :)
by figoyouwei
Tue Sep 02, 2014 3:19 am
Forum: NEURON hacks
Topic: import matrix from file
Replies: 2
Views: 15580

Re: import matrix from file

thanks ! scanf() with no arguments works perfect.
by figoyouwei
Thu Aug 28, 2014 11:44 pm
Forum: NEURON hacks
Topic: import matrix from file
Replies: 2
Views: 15580

import matrix from file

Dear Ted, The traditional way to import matrix data from file is to 1. define a matrix and then 2. scanf the file by specifying the number of rows and cols, e.g. mat = new Matrix(nrow, ncol) mat.scanf(fileobj, nrow, nrow) Is there a way in hoc, which can automatically read in the nrow/ncol informati...
by figoyouwei
Wed Aug 06, 2014 5:24 pm
Forum: OS X
Topic: nrngui failed as Py_Initialize exited
Replies: 5
Views: 11772

Re: nrngui failed as Py_Initialize exited

thank you !
by figoyouwei
Tue Aug 05, 2014 9:54 pm
Forum: OS X
Topic: nrngui failed as Py_Initialize exited
Replies: 5
Views: 11772

Re: nrngui failed as Py_Initialize exited

site.__file__ prints out
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.pyc'

so I tried:
export PYTHONHOME=/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
by figoyouwei
Tue Aug 05, 2014 8:15 pm
Forum: OS X
Topic: nrngui failed as Py_Initialize exited
Replies: 5
Views: 11772

nrngui failed as Py_Initialize exited

Dear Ted: I just successfully installed NEURON with Python on the Mac OSX 10.9.4, everything works perfect under Python(2.7.8), but the nrngui doesn't seem to go and produces this error message, I tried different PYTHONHOMEs after examining that site.__file__, still no good. Anything else I shall tr...
by figoyouwei
Tue Jul 29, 2014 12:41 pm
Forum: NEURON hacks
Topic: Equation behind Function Table
Replies: 4
Views: 16028

Re: Equation behind Function Table

When the value is out of the TABLE range, it evaluates the nearest point.
by figoyouwei
Mon Jul 28, 2014 4:23 pm
Forum: NEURON hacks
Topic: Equation behind Function Table
Replies: 4
Views: 16028

Re: Equation behind Function Table

thank you Ted, yeah , FUNCTION works. A deeper question: when a FUNCTION_TABLE is provided, e.g. FUNCTION_TABLE var (v(mV)), if the values of voltage v in the provided table range only from -30 to 50, then what happens to NEURON evaluation when the voltage is below -30 ? Does it take the value for -...
by figoyouwei
Thu May 01, 2014 12:42 pm
Forum: NEURON + Python
Topic: Recording changes in Impedance in NEURON (Python)
Replies: 14
Views: 11744

Re: Recording changes in Impedance in NEURON (Python)

thank you Ted, it works pure :)

another small question on this topic, when we do:
-> imp.compute(frequency)

some models chose the frequency = 10, what does this frequency exactly mean under the hook ?
by figoyouwei
Thu Apr 24, 2014 11:11 am
Forum: NEURON + Python
Topic: Recording changes in Impedance in NEURON (Python)
Replies: 14
Views: 11744

Re: Recording changes in Impedance in NEURON (Python)

Dear Ted,

recording impedance using the NEURON impedance class works perfectly. Thank you !

but ... another question, how to do a shape plot of impedance throughout a model ? Like in the "Harnett and Magee 2012 Nature" Fig.3a (right) ?
by figoyouwei
Tue Apr 15, 2014 6:28 pm
Forum: Anatomically detailed models
Topic: Export PlotShape
Replies: 6
Views: 9879

Re: Export PlotShape

thank you Ted, it shapes :)
by figoyouwei
Tue Apr 15, 2014 6:27 pm
Forum: Anatomically detailed models
Topic: Questions on import3d and export tools
Replies: 15
Views: 18041

Re: Questions on import3d and export tools

thank you Ted, it defines :)
by figoyouwei
Tue Apr 15, 2014 12:42 pm
Forum: Anatomically detailed models
Topic: Questions on import3d and export tools
Replies: 15
Views: 18041

Re: Questions on import3d and export tools

Dear Ted,

First, it shall be "for ii = 0,n3d()-1",

and second, this still prints out the "relative" points ...

soma 0 0 0 30
soma 30 0 0 20
apical 0 0 0 10
apical 30 0 0 5 (apical 60 0 0 5, wanted)
...

any better solutions ?