Search found 5 matches

by igor
Sat Apr 04, 2020 6:12 am
Forum: NEURON + Python
Topic: Copy a nrn object in Python?
Replies: 5
Views: 860

Re: Copy a nrn object in Python?

Thnx a lot! Maybe that would be an answer. In our small team I am usin a Mac, a friend is using Linux, thus all shall be well. I really haven’t thought of that even though I am actually a computer scientist. I simply thought that since nrn works in a single thread and Python has a GIL mechanism, tha...
by igor
Sat Apr 04, 2020 6:00 am
Forum: NEURON + Python
Topic: Copy a nrn object in Python?
Replies: 5
Views: 860

Re: Copy a nrn object in Python?

Thank you for a prompt answer, although I am sorry to hear that ;-( I understand, that a workaround I thought about to start with two (or a short list of, I wouldn't need many) identical objects, then try each on an event selecting different action, compare and select the better, and then __copy__ a...
by igor
Wed Apr 01, 2020 1:02 pm
Forum: NEURON + Python
Topic: Copy a nrn object in Python?
Replies: 5
Views: 860

Copy a nrn object in Python?

I need to run some training of networks built for nrn using Python. In particular, at a given moment I need to **deepcopy** an object, already trained up to some moment, to check the outcome of two possible ways of subsequent training, in order to select a better one according to some measure. The o...
by igor
Sun Mar 08, 2020 8:45 am
Forum: Other questions
Topic: MOD Files Compile But Fail To Load
Replies: 9
Views: 2163

Re: MOD Files Compile But Fail To Load

Hi, I am new to NEURON, but having similar problems (I run Catalina 10.15 and use Conda Python 3.7). I have a library x86_64/.libs/libnrnmech.so with mod file compiled with success. Running nrniv (or nrngui) successfully load the library. On the other hand, similar to your example, running (pytorch)...
by igor
Sat Mar 07, 2020 9:03 am
Forum: Other questions
Topic: Cannot load compiled mod files from python
Replies: 1
Views: 491

Cannot load compiled mod files from python

Hi, I started working with NEURON recently, mainly using Python. A friend of mine has written a library which, at one moment, compiles some mod files using os.popen('nrnivmodl') which runs great building an x86_64/.libs/ directory with compiled library libnrnmech.so. The compile procedure returns fo...