Search found 83 matches

by patoorio
Fri May 31, 2024 5:08 pm
Forum: MSWin
Topic: Python cannot import neuron library on Windows install
Replies: 7
Views: 18510

Re: Python cannot import neuron library on Windows install

Yes, I thought about setting an environment with Python 3.11, but since I already have Python(3.12)+Neuron working under the WSL, it is kind of the same.
We'll have to wait for an update, I guess.

EDIT: in another computer I have Python 3.11 + Neuron working perfectly in Windows
by patoorio
Thu May 30, 2024 5:41 pm
Forum: MSWin
Topic: Python cannot import neuron library on Windows install
Replies: 7
Views: 18510

Re: Python cannot import neuron library on Windows install

Hi, I am having the same issue with my Python/Windows installation: from neuron import h Traceback (most recent call last): File c:\nrn\lib\python\neuron\__init__.py:135 from . import hoc ImportError: cannot import name 'hoc' from partially initialized module 'neuron' (most likely due to a circular ...
by patoorio
Mon Apr 29, 2019 9:21 am
Forum: MSWin
Topic: mknrndll not finding nrnunits.lib
Replies: 6
Views: 15358

Re: mknrndll not finding nrnunits.lib

Great, thanks!
by patoorio
Fri Apr 26, 2019 3:30 pm
Forum: MSWin
Topic: mknrndll not finding nrnunits.lib
Replies: 6
Views: 15358

Re: mknrndll not finding nrnunits.lib

Thank you!
I'll stay tuned
by patoorio
Wed Apr 24, 2019 10:04 pm
Forum: MSWin
Topic: mknrndll not finding nrnunits.lib
Replies: 6
Views: 15358

Re: mknrndll not finding nrnunits.lib

Does the file c:/nrn/lib/nrnunits.lib exist in your installation? Yes it does! Does mknrndll work in the bash terminal if you have export MODLUNIT=/cygdrive/c/nrn/lib/nrnunits.lib yes it works!! (Previously I made the stupid mistake of using 'set' instead of 'export'... sorry, too much time away fr...
by patoorio
Tue Apr 23, 2019 9:14 pm
Forum: MSWin
Topic: mknrndll not finding nrnunits.lib
Replies: 6
Views: 15358

mknrndll not finding nrnunits.lib

Hi, I wasn't sure whether to post this here or under the NMODL sub-forum, but finally posted here because it seems to be a Windows-specific issue. With the last Neuron version (7.6.6), I'm getting the following error when trying to compile a .mod file that contains a UNITS block: c:\nrn/mingw/usr/bi...
by patoorio
Tue Jul 04, 2017 2:15 pm
Forum: NEURON + Python
Topic: nseg not a USEPROPERTY
Replies: 8
Views: 16330

Re: nseg not a USEPROPERTY

Oh, I see.
Thanks for the explanation!!
by patoorio
Tue Jul 04, 2017 1:17 pm
Forum: NEURON + Python
Topic: nseg not a USEPROPERTY
Replies: 8
Views: 16330

Re: nseg not a USEPROPERTY

Great! Thanks Still, when I do autocompletion on a Section's name, 'diam' does not appear as an option: In [2]: soma=h.Section() In [3]: soma. allseg() diam3d() L parentseg() trueparentseg() arc3d() has_membrane() n3d() push() uninsert() cell() hname() name() Ra x3d() children() hoc_internal_name() ...
by patoorio
Mon Jul 03, 2017 1:00 pm
Forum: NEURON + Python
Topic: nseg not a USEPROPERTY
Replies: 8
Views: 16330

Re: nseg not a USEPROPERTY

Hi, I'm getting the same error under a completely different circumstance. Windows+Python3+Neuron7.5 (See below the details), if I'm within iPython and press TAB for autocompletion of h.IClamp, or h.load_file, the kernel dies with that same message. Autocompletion for other things like h.Section(), w...
by patoorio
Sun Apr 23, 2017 5:14 pm
Forum: MSWin
Topic: NRN 7.4 on windows 10
Replies: 24
Views: 49143

Re: NRN 7.4 on windows 10

Hi, I'm running into the same issue. My workaround has been to replace the association of .hoc files to make them be opened with 'nrniv.exe' instead of neuron.exe. I think it works OK that way, though I don't know if some unexpected problem may arise later. I'm wondering if this is related to the fa...
by patoorio
Fri Apr 25, 2014 2:20 pm
Forum: UNIX/Linux
Topic: Error compiling in Ubuntu 14.04
Replies: 13
Views: 13288

Error compiling in Ubuntu 14.04

Hi, I'm compiling Neuron 7.3 under the new Ubuntu 14.04 and get this error: In file included from ./ACG.h:21:0, from ACG.cpp:24: ./RNG.h:48:5: error: '_G_uint32_t' does not name a type _G_uint32_t u; ^ ./RNG.h:53:5: error: '_G_uint32_t' does not name a type _G_uint32_t u[2]; ^ And the errors continu...
by patoorio
Sat Mar 01, 2014 1:28 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: setting seed in a Distributed Mechanism
Replies: 1
Views: 2340

setting seed in a Distributed Mechanism

Hi, I'm using a distributed mechanism with the scop_rand() function for the simulation of stochastic ion channels. I want to set the seed, otherwise I'm getting the same results every time I run the simulation from the beggining. I have seen the use of set_seed() in the context of Point Processes an...
by patoorio
Fri Jan 31, 2014 2:35 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: at_time(event) keeps being true when t>event?
Replies: 3
Views: 4003

Re: at_time(event) keeps being true when t>event?

Thanks a lot for your answer Why not just use an ExpSyn and drive it with a single event delivered by a NetCon Yes, that's more or less what I will do but with some modification because I want the conductance to raise exponentially, stay there for a variable period of time, and then decrease exponen...
by patoorio
Thu Jan 30, 2014 1:32 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: at_time(event) keeps being true when t>event?
Replies: 3
Views: 4003

at_time(event) keeps being true when t>event?

Hi, I want to code a mechanism with a conductance that raises and then decreases exponentially. As it's a simple exponential, I don't want to use differential equations but rather an exponential function changing the initial and steady state value. However, the initial value has to be the actual g v...
by patoorio
Fri Jan 17, 2014 5:39 pm
Forum: MSWin
Topic: cannot export postscript
Replies: 8
Views: 12558

Re: cannot export postscript

Thanks a lot!!
That did it.