Search found 68 matches

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: 3534

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: 3534

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...
by stephanmg
Wed Jul 09, 2014 4:17 am
Forum: Other questions
Topic: C/C++ API
Replies: 43
Views: 11866

Re: C/C++ API

Fine, thanks in advance! So to document the solution for the original question I wanted to address, i.e. fill an std vector with all present sections, find the code below: // NEURON includes #include "oc2iv.h" #include "ocjump.cpp" #include "ivocmain.cpp" #include "section.h // predeclare secname fu...
by stephanmg
Tue Jul 08, 2014 11:32 am
Forum: Other questions
Topic: C/C++ API
Replies: 43
Views: 11866

Re: C/C++ API

Okay, so how can i then get just the next section? :) Sorry i can't find out for now... I'm on C++ Code thought, so i need at way to iterate over the section and append it to the std::vector, e. g. i do this, but this is hacky, since i delete the sections. Afterwards i just load the hoc geometry fil...
by stephanmg
Mon Jul 07, 2014 10:13 am
Forum: Other questions
Topic: C/C++ API
Replies: 43
Views: 11866

Re: C/C++ API

This is wonderful, hines.

Thanks in advance,
Stephan
by stephanmg
Mon Jul 07, 2014 8:05 am
Forum: Other questions
Topic: C/C++ API
Replies: 43
Views: 11866

Re: C/C++ API

Okay, but if i use this, then i arrive at: Undefined symbols for architecture x86_64: "secname(Section*)", referenced from: Edit: Okay i managed to resolve this - but now I arrive at (Note that I have not accessed any section with the access command until now): (null): Section access unspecified nea...
by stephanmg
Mon Jul 07, 2014 7:49 am
Forum: Other questions
Topic: C/C++ API
Replies: 43
Views: 11866

Re: C/C++ API

hines wrote:Sorry. What I left out was the function that returns the currently accessed section. That is
extern Section* chk_access(void);

Ah thanks, I see,
so my simple functkion call would not do it, because it's also defined?

Best,
Stephan
by stephanmg
Mon Jul 07, 2014 7:31 am
Forum: Other questions
Topic: C/C++ API
Replies: 43
Views: 11866

Re: C/C++ API

Dear hines,

thanks firstly for your quick reply.

So you mean i could use

Code: Select all

extern const char* secname();
?
I thin the Section* pointer argument was accidently wrong, right?

Best,
Stephan
by stephanmg
Mon Jul 07, 2014 5:49 am
Forum: Other questions
Topic: C/C++ API
Replies: 43
Views: 11866

Re: C/C++ API

Dear all, i can use hoc_ac_ to get the double / return value of a hoc_valid_stmt execution. How about getting a string into hoc_ac_, i. e. get for example a section name? Could I use something like this? static double get_section_names(v) void* v; { char* secname(); Item* q; List* sl = (List*)v; ITE...
by stephanmg
Thu Jun 26, 2014 7:02 am
Forum: Other questions
Topic: Static NEURON build
Replies: 3
Views: 2236

Re: Static NEURON build

I managed to resolve the previous problems, still i arrive at: Undefined symbols for architecture x86_64: "_tgetent", referenced from: _tcapopen in libmemacs.a(tcap.o) "_tgetnum", referenced from: _tcapopen in libmemacs.a(tcap.o) "_tgetstr", referenced from: _tcapopen in libmemacs.a(tcap.o) "_tgoto"...
by stephanmg
Thu Jun 26, 2014 5:36 am
Forum: Other questions
Topic: Static NEURON build
Replies: 3
Views: 2236

Re: Static NEURON build

Okay, i managed to compile it by following the thread of: http://www.neuron.yale.edu/phpbb/viewtopic.php?f=8&t=2638 But still I get linking errors afterwards: Undefined symbols for architecture x86_64: "std::__1::__vector_base_common<true>::__throw_length_error() const", referenced from: std::__1::v...
by stephanmg
Thu Jun 26, 2014 3:57 am
Forum: Other questions
Topic: Static NEURON build
Replies: 3
Views: 2236

Static NEURON build

Dear NEURON users, if i compile my NEURON from source, i arrive at many shared libraries (.dylib or .so). In principle I need to have a static build, let's say, "libNEURON.a", since otherwise on different machines the dynamically linked libraries won't get found. Is there a way to accomplish a pure ...
by stephanmg
Fri Jun 06, 2014 8:43 am
Forum: Reaction-diffusion in NEURON
Topic: Basic modelling question
Replies: 7
Views: 13159

Re: Basic modelling question

Btw. i used an example channel from:
http://senselab.med.yale.edu/modeldb/sh ... nj\CaT.mod

and inserted it into my sections.

Best,
Stephan
by stephanmg
Fri Jun 06, 2014 3:54 am
Forum: OS X
Topic: Patch for build.sh (iv from hg sources) on Mac OSX
Replies: 2
Views: 6037

Re: Patch for build.sh (iv from hg sources) on Mac OSX

Additional,

for building nrn 7.4 from hg source on MacOSX the cython detection fails, even if cython executable is in the PATH.
Manually overriding hardcoded the cython binary location succeeds (testes with cython 2.7)

Hope this helps you,
best Stephan
by stephanmg
Fri Jun 06, 2014 3:13 am
Forum: OS X
Topic: Patch for build.sh (iv from hg sources) on Mac OSX
Replies: 2
Views: 6037

Patch for build.sh (iv from hg sources) on Mac OSX

Dear all, here is my patch for build.sh: # HG changeset patch # User stephanmg # Date 1402038607 -7200 # Fri Jun 06 09:10:07 2014 +0200 # Node ID 8bdb17f807ee57c14d2b12fe433d8ec55021d285 # Parent 44d6ec5724f4c8b1f22e6e1c7f05168c5bce2bae Fix for build.sh on Mac OSX for glibtoolize/libtoolize with Mac...