From 8a20284dcabb05b73c3b98920a15c7b64ff2090b Mon Sep 17 00:00:00 2001 From: Moritz-Alexander-Kern Date: Fri, 2 Jun 2023 11:18:20 +0200 Subject: [PATCH] use default tolerances for np.testing.allclose() --- elephant/test/test_phase_analysis.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/elephant/test/test_phase_analysis.py b/elephant/test/test_phase_analysis.py index f9b0bb772..50b4f340f 100644 --- a/elephant/test/test_phase_analysis.py +++ b/elephant/test/test_phase_analysis.py @@ -496,7 +496,7 @@ def test_WPLI_ground_truth_consistency_real_LFP_dataset(self): self.lfps1_real, self.lfps2_real, self.sf1_real) np.testing.assert_allclose( wpli, self.wpli_ground_truth_ft_connectivity_wpli_real, - atol=self.tolerance, rtol=self.tolerance, equal_nan=True) + equal_nan=True) # np.array-input with self.subTest(msg="np.array input"): freq, wpli = elephant.phase_analysis.weighted_phase_lag_index( @@ -504,14 +504,14 @@ def test_WPLI_ground_truth_consistency_real_LFP_dataset(self): self.sf1_real) np.testing.assert_allclose( wpli, self.wpli_ground_truth_ft_connectivity_wpli_real, - atol=self.tolerance, rtol=self.tolerance, equal_nan=True) + equal_nan=True) # neo.AnalogSignal-input with self.subTest(msg="neo.AnalogSignal input"): freq, wpli = elephant.phase_analysis.weighted_phase_lag_index( self.lfps1_real_AnalogSignal, self.lfps2_real_AnalogSignal) np.testing.assert_allclose( wpli, self.wpli_ground_truth_ft_connectivity_wpli_real, - atol=self.tolerance, rtol=self.tolerance, equal_nan=True) + equal_nan=True) def test_WPLI_ground_truth_consistency_artificial_LFP_dataset(self): """