Search found 21 matches

by wvangeit
Tue Aug 20, 2019 8:13 am
Forum: OS X
Topic: Installation problem Neuron
Replies: 36
Views: 14515

Re: Installation problem Neuron

mhines, we're still running into this issue.
Providing --with-readline=no makes neuron compile, but it makes bluepyopt crash during tests (and it's difficult to see what exactly happens).
What would be the effect of disabling readline ?
by wvangeit
Sat Jul 24, 2010 10:18 am
Forum: NEURON + Python
Topic: Playing a vector
Replies: 12
Views: 7126

Re: Playing a vector

Hi,

Doesn't

Code: Select all

VecStim.play(stim._ref_amp, VecT, 1)
without the 'h.', work ?

Werner
by wvangeit
Wed Oct 14, 2009 4:12 am
Forum: NEURON + Python
Topic: Playing a vector
Replies: 12
Views: 7126

Re: Playing a vector

Okay, I have found the problem when I tried to make an easy-reproducible testcase. It was a (tricky) mistake I made. The following code works: #!/usr/bin/env nrngui -nogui -python import neuron from neuron import * import nrn from nrn import * h('create soma') h('access soma') h.soma.insert("Na") tv...
by wvangeit
Tue Oct 06, 2009 12:21 am
Forum: NEURON + Python
Topic: Playing a vector
Replies: 12
Views: 7126

Re: Playing a vector

Mmm, I've found another solution that works: h('objref tempvec, tvec') h.tvec = h.Vector(2) h.tvec.x[0] = 0 h.tvec.x[1] = 1100 h.tempvec = h.Vector(2) h.tempvec.x[0] = 30.0 h.tempvec.x[1] = 32.0 h.tempvec.play(h.axon(0.5)._ref_enax_Na, h.tvec, 1) h.tempvec.play(h.soma(0.5)._ref_enax_Na, h.tvec, 1) N...
by wvangeit
Mon Oct 05, 2009 10:53 pm
Forum: NEURON + Python
Topic: Playing a vector
Replies: 12
Views: 7126

Playing a vector

I've problems with playing a vector into a variable in python. The following code works: h('objref tempvec, tvec') h('tempvec = new Vector(2)') h('tvec = new Vector(2)') h('tempvec.x[0] = 30') h('tvec.x[0] = 0') h('tempvec.x[1] = 32') h('tvec.x[1] = 1100') h('tempvec.play(&axon.enax_Na(0.5), tvec, 1...
by wvangeit
Thu Oct 01, 2009 8:20 pm
Forum: NEURON + Python
Topic: Membrane currents
Replies: 3
Views: 1921

Re: Membrane currents

Thx,
Sorry that I didn't notice the interpolate function in the documentation.

Werner
by wvangeit
Wed Sep 30, 2009 10:56 pm
Forum: NEURON + Python
Topic: possible section syntax
Replies: 10
Views: 9394

Re: possible section syntax

I have one comment about this, I've been using statements like soma = neuron.h.Section() It's a short way of writing this down, but it's only a pity that in the hoc world this translates into an object with a strange name containing the pointer address of the object. Since I'm still mixing sometimes...
by wvangeit
Wed Sep 30, 2009 10:43 pm
Forum: NEURON + Python
Topic: Membrane currents
Replies: 3
Views: 1921

Membrane currents

I want to write a function in my python code, that automatically writes every time step all the membrane currents in a segment to a file. I have all the code for this, the only piece I'm missing is a way to automatically find out all the fields that are available in a segment (the _ref_ attributes),...
by wvangeit
Sun Sep 13, 2009 9:05 pm
Forum: OS X
Topic: An error in 10.6 Snow Leopard
Replies: 8
Views: 5187

Re: An error in 10.6 Snow Leopard

I'm having exactly the same problem after installing (i.e. compiling from source) it on a new Snow Leopard.
by wvangeit
Thu Aug 20, 2009 9:33 pm
Forum: NEURON + Python
Topic: Without iv?
Replies: 3
Views: 1906

Re: Without iv?

Actually, concerning that DISPLAY issue, I've looked into the neuron source: if (getenv("DISPLAY")) { session = new Session("NEURON", our_argc, our_argv, options, properties); }else{ fprintf(stderr, "Warning: no DISPLAY environment variable.\ \n--No graphics will be displayed.\n"); hoc_usegui = 0; }...
by wvangeit
Thu Aug 20, 2009 9:03 pm
Forum: NEURON + Python
Topic: Without iv?
Replies: 3
Views: 1906

Re: Without iv?

I've tried replacing the reference with one to ivos, but now I get a new error: "libnrniv.so.0: undefined symbol: nrnpython_reg_real" Btw, the reason why I'm configuring --without-x is because the -nogui option doesn't seem to work when using python. When I run a python script with 'nrniv -nogui -py...
by wvangeit
Mon Aug 17, 2009 7:53 pm
Forum: Other questions
Topic: Vector play error
Replies: 5
Views: 1600

Re: Vector play error

Hi,
No, not at the moment I think, but when I started using that subversion archive more than a year ago, I think there was. I was just doing 'svn update' to get the new release, didn't realize that you stopped using that archive.

Werner
by wvangeit
Mon Aug 17, 2009 2:37 am
Forum: Other questions
Topic: Vector play error
Replies: 5
Views: 1600

Re: Vector play error

Okay, have discovered the problem, apparently the subversion archive doesn't contain the latest release, have used the Mercurial repository now. This solves the problem.

Werner
by wvangeit
Mon Aug 17, 2009 12:55 am
Forum: Other questions
Topic: Vector play error
Replies: 5
Views: 1600

Re: Vector play error

Small addition, it seems to work in Neuron 7 that is compiled from the tarball on the website, but I'm using the latest repository release, downloaded with subversion.

Werner
by wvangeit
Mon Aug 17, 2009 12:38 am
Forum: Other questions
Topic: Vector play error
Replies: 5
Views: 1600

Vector play error

Hi, Does anybody have any idea why the following code is not working anymore in Neuron 7 (Revision 2227) ? create soma objref vclamp1, v1 v1 = new Vector(1000000) soma { vclamp1 = new SEClamp(.5) v1.play(&vclamp1.amp1,0.02) } tstop = 1000 run() I get the error: NEURON -- VERSION 7.0.0 (2227) 2008-09...