Page 1 of 1

[Solved] Disabling NEURON warnings

Posted: Wed Jan 09, 2019 3:41 pm
by sdtran
The error message is below:

Code: Select all

1 NEURON: Can't take derivative of Vector with less than two points
1  near line 0
1  ^
I am trying to compute the ISI by deriving the vector, and it's encased in a try/except clause, so no worries if it fails. Is there a way to silence this warning?
I searched the NEURON forums, but couldn't find something on this topic. Thanks.

Re: Disabling NEURON warnings

Posted: Thu Jan 10, 2019 5:10 pm
by ted
Suggest verifying that the Vector contains at least two elements before calling the Vector class's deriv method.

Re: Disabling NEURON warnings

Posted: Fri Jan 11, 2019 2:16 pm
by sdtran
Oh, duh. Thank you.