[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 »

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: 6289
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Disabling NEURON warnings

Post by ted »

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 »

Oh, duh. Thank you.
Post Reply