Search found 127 matches

by Keivan
Fri Jan 13, 2012 12:22 pm
Forum: Optimization
Topic: Strange problem during fitting process: is it a bug of nrn?
Replies: 3
Views: 14042

Re: Strange problem during fitting process: is it a bug of n

Actually no. As I told you before I found another temporary solution for my problem because I had to send the revision of my article as soon as possible. Still, I think there is sth wrong with NMODL. I delayed sending my model to you because I wanted to write a simple test code for you but I could n...
by Keivan
Mon Dec 19, 2011 3:25 pm
Forum: Optimization
Topic: Strange problem during fitting process: is it a bug of nrn?
Replies: 3
Views: 14042

Strange problem during fitting process: is it a bug of nrn?

I have a mechanism in my model which calculates amplitude of EPSPs for me. I have non-uniform model so I have to initialize my model to the steady state (when t<0). My synapse become active at t = 10. this is my mechanism. NEURON { SUFFIX vmax RANGE vm, tm, vrest, amp } ASSIGNED { v (millivolt) vm (...
by Keivan
Fri Dec 16, 2011 11:23 am
Forum: Optimization
Topic: How to find the sensitivity of the fitting on parameters?
Replies: 2
Views: 14842

Re: How to find the sensitivity of the fitting on parameters

Is there a solution for the above problem? Please, tell me if there is not.

Besides, latest alpha version of neuron has problem compiling in windows:

Code: Select all

./.libs/libivoc.a(ivocrand.o):ivocrand.cpp:(.text+0x6fa): undefined reference to `_nrnran123_getseq'
by Keivan
Thu Dec 15, 2011 2:13 am
Forum: Optimization
Topic: How to find the sensitivity of the fitting on parameters?
Replies: 2
Views: 14842

How to find the sensitivity of the fitting on parameters?

Hi
I'm trying to publish an article in which I have used multirunfitter tool of NEURON. One of my reviewers has asked me to show sensitivities of the fitting on parameters. How can I do that?
by Keivan
Mon Nov 21, 2011 3:07 pm
Forum: MSWin
Topic: Compile error in mlinedit.cpp
Replies: 2
Views: 7163

Re: Compile error in mlinedit.cpp

Thanks. It was my fault.
by Keivan
Mon Nov 21, 2011 2:39 am
Forum: MSWin
Topic: Compile error in mlinedit.cpp
Replies: 2
Views: 7163

Compile error in mlinedit.cpp

There is a problem compiling neuron under cygwin: error: mlinedit.cpp: In constructor 'OcMLineEditor::OcMLineEditor(unsigned int, unsigned int, const char*)': mlinedit.cpp:109:65: error: invalid conversion from 'const char*' to 'char*' mlinedit.cpp:109:65: error: initializing argument 1 of 'iv3_Text...
by Keivan
Mon Nov 14, 2011 5:34 am
Forum: Other questions
Topic: Initializing potassium concentration in hoc
Replies: 5
Views: 2873

Re: Initializing potassium concentration in hoc

ek is merely a parameter whose value can be assigned with a simple hoc statement like ek = -90. Thank you for the tip. I didn't know ek can be a parameter itself. There is no need to calculate ek from the Nernst equation at initialization or on every fadvance() if there is no mechanism that WRITEs ...
by Keivan
Sun Nov 13, 2011 3:46 pm
Forum: Other questions
Topic: Initializing potassium concentration in hoc
Replies: 5
Views: 2873

Re: Initializing potassium concentration in hoc

When I changed the ion_style() to ion_style("k_ion", 2, 2, 1, 1, 1) everything worked fine. Now my question is 1. what is the difference between assigned or state type of c_style (or e_style)? I have a model of M-type potassium current with the following USEION statement in the NEURON bloc...
by Keivan
Sun Nov 13, 2011 1:53 pm
Forum: Other questions
Topic: Initializing potassium concentration in hoc
Replies: 5
Views: 2873

Initializing potassium concentration in hoc

I'm trying to initializing potassium concentration in the hoc according to the "NEURON Book". for example, I want to change ek of the model to -90 mV at 35 dec C. oc>nernst(140,4.72,1) -90.003219 I created a simple model, as follows: create soma access soma celsius = 35 insert hh ki0_k_ion...
by Keivan
Fri Nov 11, 2011 2:57 am
Forum: NEURON hacks
Topic: Syntax Highlighting for GNU Linux and MS Windows
Replies: 11
Views: 54946

Re: Syntax Highlighting for KDE4, Gnome and Windows

Thank you for the tip vladimirov. I'm going to update my post.
by Keivan
Tue Jul 05, 2011 6:40 am
Forum: Anatomically detailed models
Topic: Probable bug in IClamp mechanism
Replies: 7
Views: 4545

Re: Probable bug in IClamp mechanism

this is the topic.
by Keivan
Mon Jul 04, 2011 2:27 pm
Forum: Anatomically detailed models
Topic: Probable bug in IClamp mechanism
Replies: 7
Views: 4545

Re: Probable bug in IClamp mechanism

I was thinking about this all the day. I think I found the solution. the init code should change in this part:

Code: Select all

  while (t < 0) {
    fadvance()
  }
excuse me if I asked this stupid question. I should be more careful.
by Keivan
Mon Jul 04, 2011 1:06 pm
Forum: Anatomically detailed models
Topic: Probable bug in IClamp mechanism
Replies: 7
Views: 4545

Re: Probable bug in IClamp mechanism

Dear ted I tried 7.2 524 and 7.2 526 in linux and windows: with cvode active and inactive -> problem exist with and without active mechanism -> it exist I use this init() code you gave me before: //initialize it to steady state INITDUR = 300 // # ms to reach steady state proc init() { finitialize(v_...
by Keivan
Mon Jul 04, 2011 10:41 am
Forum: Anatomically detailed models
Topic: Probable bug in IClamp mechanism
Replies: 7
Views: 4545

Re: Probable bug in IClamp mechanism

What should I do?
by Keivan
Mon Jul 04, 2011 10:36 am
Forum: The GUI
Topic: 2 fitness generators in multirun fitter
Replies: 11
Views: 16252

Re: 2 fitness generators in multirun fitter

Thanks a lot Ted an Raj.
Today I find some time to work on these ideas. Ted's idea was easier to implement and it worked for me.
Thanks a lot again.