[Solved] Disabling NEURON warnings

Anything that doesn't fit elsewhere.
Post Reply
sdtran
Posts: 4
Joined: Wed Jun 13, 2018 2:38 pm

[Solved] Disabling NEURON warnings

Post by sdtran » Wed Jan 09, 2019 3:41 pm

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.
Last edited by sdtran on Fri Jan 11, 2019 2:17 pm, edited 2 times in total.

ted
Site Admin
Posts: 5748
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Disabling NEURON warnings

Post by ted » Thu Jan 10, 2019 5:10 pm

Suggest verifying that the Vector contains at least two elements before calling the Vector class's deriv method.

sdtran
Posts: 4
Joined: Wed Jun 13, 2018 2:38 pm

Re: Disabling NEURON warnings

Post by sdtran » Fri Jan 11, 2019 2:16 pm

Oh, duh. Thank you.

Post Reply