Search found 66 matches

by stephanmg
Tue Apr 28, 2015 6:14 am
Forum: Other questions
Topic: Start NEURON and load MOD files
Replies: 3
Views: 1380

Re: Start NEURON and load MOD files

Thanks, this helps a lot.

Best regards,
Stephan
by stephanmg
Mon Apr 27, 2015 5:18 am
Forum: Other questions
Topic: Start NEURON and load MOD files
Replies: 3
Views: 1380

Start NEURON and load MOD files

Dear Users, I've come up with a question: I need to start NEURON from let's say the directory /foo/bar/ but i have my mod files in /ext/dir/ - how would i load the mod files? Please note, I'm using ivocmain for initializing NEURON in a custom cpp project. Best regards and thanks in advance, Stephan
by stephanmg
Mon Mar 16, 2015 7:25 am
Forum: Other questions
Topic: HOC grammar
Replies: 1
Views: 523

HOC grammar

Dear NEURON users,

it's been a while when i asked my last question here, now I'm back with some small question:

For the .hoc files there must be available a parser in NEURON.
I'm wondering where I could fine a grammar for this parser (probably (E)BNF would be great).

Best regards,
Stephan
by stephanmg
Fri Aug 15, 2014 4:05 am
Forum: Adding new mechanisms and functions to NEURON
Topic: use a hoc statement to "load" a compiled mechanism?
Replies: 6
Views: 2072

Re: use a hoc statement to "load" a compiled mechanism?

Hey, i just want to let you know some issue, maybe you can help out again dear users. If i'm compiling my NEURON from the hg repository as indicated above dynamically, everything fine. That is, i compile a mod file and then i can load it. If i'm compiling my NEURON from the hg repository instead as ...
by stephanmg
Fri Aug 15, 2014 3:58 am
Forum: Other questions
Topic: Possible precision problem
Replies: 8
Views: 1589

Re: Possible precision problem

Thanks,

i found a bug in our code! :)

Best regards,
Stephan
by stephanmg
Fri Aug 15, 2014 2:48 am
Forum: Other questions
Topic: Possible precision problem
Replies: 8
Views: 1589

Re: Possible precision problem

Dear Ted, that's interesting. I'm using in my C code the expression hoc_valid_stmt("a_bla = 0.123456789", 0); Then, if i retrieve it with: double hoc_ac_; hoc_valid_stmt("hoc_ac_ = a_bla"); I receive again lower precision, i. e. 0.123456 for example. Is this to be expected? Thanks for your quick rep...
by stephanmg
Thu Aug 14, 2014 12:39 pm
Forum: Other questions
Topic: Possible precision problem
Replies: 8
Views: 1589

Re: Possible precision problem

Could it be related to this issue, maybe? => http . . . 2. Refuse to accept biological reality. If some parameter really must be specified to > 5-6 place precision, do that assignment in hoc or Python. Or you could insert a statement like a = 0.123456789 in the NMODL code's INITIAL block. This "har...
by stephanmg
Mon Aug 11, 2014 2:59 am
Forum: Other questions
Topic: Possible precision problem
Replies: 8
Views: 1589

Re: Possible precision problem

Dear Ted,

that is great, thanks, and it explains the issue.

Thanks in advance,
Stephan
by stephanmg
Fri Aug 08, 2014 3:19 pm
Forum: Other questions
Topic: Possible precision problem
Replies: 8
Views: 1589

Re: Possible precision problem

Yes, i'm sorry for the imperfect description. But you got it nevertheless. Thank you so much.

HTH.

Best
Stephan
by stephanmg
Fri Aug 08, 2014 11:31 am
Forum: Other questions
Topic: Possible precision problem
Replies: 8
Views: 1589

Possible precision problem

Dear NEURON users, we're facing a strange problem: The precision of a variable we retrieve from a .hoc file is different from a .modl file, i. e.: let's consider variable foo with value 0.123456789, retrieving it from hoc we receive the full length, i. e. 0.123456789, whereas when the variable foo i...
by stephanmg
Thu Jul 17, 2014 2:48 am
Forum: Other questions
Topic: Import SWC file from NeuroMorpho -> Export as HOC file
Replies: 9
Views: 2173

Re: Import SWC file from NeuroMorpho -> Export as HOC file

Thanks,

to understand it fully, this means, that, if I would add by pt3dadd() points to a section, i implicit define an order of the points along the section, right?

Best,
Stephan
by stephanmg
Wed Jul 16, 2014 11:12 am
Forum: Other questions
Topic: Import SWC file from NeuroMorpho -> Export as HOC file
Replies: 9
Views: 2173

Re: Import SWC file from NeuroMorpho -> Export as HOC file

Hi Stephan, check out the part of the NEURON documentation about n3d() , x3d(i), y3D(i) and z3d(i)... sounds like that's what you're looking for. These functions return the x/y/z coordinate of the ith point along the currently accessed section - so x=0 would be i=0, and x=1 would be i=n3d()-1. chee...
by stephanmg
Wed Jul 16, 2014 6:58 am
Forum: Other questions
Topic: Import SWC file from NeuroMorpho -> Export as HOC file
Replies: 9
Views: 2173

Re: Import SWC file from NeuroMorpho -> Export as HOC file

Follow up question,
hopefully this is not in the wrong place... feel free to move it around.

Thank you so much,
Ted & the whole forum
by stephanmg
Wed Jul 16, 2014 4:07 am
Forum: Other questions
Topic: Import SWC file from NeuroMorpho -> Export as HOC file
Replies: 9
Views: 2173

Re: Import SWC file from NeuroMorpho -> Export as HOC file

Dear Sir, thanks you very much, this helps much :) Maybe a following up question: If I see something like connect dendA(0), dendB(1) can i somehow figure out which point dendA(0) and dendB(1) correspond to? Note that I've inserted with pt3dadd() points into dendA and dendB previously. Best, Stephan
by stephanmg
Tue Jul 15, 2014 10:32 am
Forum: Other questions
Topic: Import SWC file from NeuroMorpho -> Export as HOC file
Replies: 9
Views: 2173

Import SWC file from NeuroMorpho -> Export as HOC file

Dear users, I've stumbled about a question: I'm exporting a NeuroMorpho DB file in SWC format via Import3D in the GUI of NEURON. Two questions I could not figure out: #1: Can I use Import3D via the oc> interpreter prompt? If yes, how? :) #2: Can I export the imported SWC geometry to a HOC file geome...