diff --git a/elephant/statistics.py b/elephant/statistics.py index 5204b09f5..c8e4df95e 100644 --- a/elephant/statistics.py +++ b/elephant/statistics.py @@ -352,10 +352,6 @@ def _check_input_spiketrains_durations(spiketrains: Union[List[neo.SpikeTrain], warnings.warn(f"Fano factor calculated for spike trains of " f"different duration (minimum: {np.min(durations)}s, maximum " f"{np.max(durations)}s).") - else: - warnings.warn(f"Spiketrains was of type {type(spiketrains)}, which does not support automatic duration" - f"check. The parameter 'warn_tolerance' will have no effect. Please ensure manually that" - f"all spike trains have the same duration.") def _compute_fano(spiketrains: Union[List[neo.SpikeTrain], List[pq.Quantity], List[np.ndarray]]) -> float: # Check spike train durations diff --git a/elephant/test/test_statistics.py b/elephant/test/test_statistics.py index 34df97542..39b088850 100644 --- a/elephant/test/test_statistics.py +++ b/elephant/test/test_statistics.py @@ -370,11 +370,6 @@ def test_fanofactor_trials_pool_spike_trains_wrong_type(self): self.assertRaises(TypeError, statistics.fanofactor, self.test_trials, pool_spike_trials="Wrong Type", pool_spike_trains="Wrong Type") - def test_fanofactor_warn_durations_manual_check(self): - st1 = [1, 2, 3] * pq.s - st2 = [1, 2, 3] * pq.s - self.assertWarns(UserWarning, statistics.fanofactor, (st1, st2)) - class LVTestCase(unittest.TestCase): def setUp(self):