From 1f7519bf82dfed7cc121d7af566de923ba97d705 Mon Sep 17 00:00:00 2001 From: Michael Denker Date: Tue, 6 Oct 2026 17:56:58 +0200 Subject: [PATCH] Fix a bug where the documentation indicated an incorrect default for nan handling. --- elephant/statistics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/elephant/statistics.py b/elephant/statistics.py index bb456ac02..7eb3e60ac 100644 --- a/elephant/statistics.py +++ b/elephant/statistics.py @@ -412,7 +412,7 @@ def cv2(time_intervals, with_nan=False): np.NaN value and a warning is raised. If False, `ValueError` exception is raised with a spike train with less than two spikes. - Default: True + Default: False Returns ------- @@ -479,7 +479,7 @@ def lv(time_intervals, with_nan=False): `np.NaN` value and a warning is raised. If False, a `ValueError` exception is raised with a spike train with less than two spikes. - Default: True + Default: False Returns ------- @@ -551,7 +551,7 @@ def lvr(time_intervals, R=5*pq.ms, with_nan=False): np.NaN value and a warning is raised. If False, a `ValueError` exception is raised with a spike train with less than two spikes. - Default: True + Default: False Returns -------