Skip to content

Commit af4a0a4

Browse files
use default tolerances for np.testing.allclose() (#572)
1 parent def50dc commit af4a0a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

elephant/test/test_phase_analysis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,22 +496,22 @@ def test_WPLI_ground_truth_consistency_real_LFP_dataset(self):
496496
self.lfps1_real, self.lfps2_real, self.sf1_real)
497497
np.testing.assert_allclose(
498498
wpli, self.wpli_ground_truth_ft_connectivity_wpli_real,
499-
atol=self.tolerance, rtol=self.tolerance, equal_nan=True)
499+
equal_nan=True)
500500
# np.array-input
501501
with self.subTest(msg="np.array input"):
502502
freq, wpli = elephant.phase_analysis.weighted_phase_lag_index(
503503
self.lfps1_real.magnitude, self.lfps2_real.magnitude,
504504
self.sf1_real)
505505
np.testing.assert_allclose(
506506
wpli, self.wpli_ground_truth_ft_connectivity_wpli_real,
507-
atol=self.tolerance, rtol=self.tolerance, equal_nan=True)
507+
equal_nan=True)
508508
# neo.AnalogSignal-input
509509
with self.subTest(msg="neo.AnalogSignal input"):
510510
freq, wpli = elephant.phase_analysis.weighted_phase_lag_index(
511511
self.lfps1_real_AnalogSignal, self.lfps2_real_AnalogSignal)
512512
np.testing.assert_allclose(
513513
wpli, self.wpli_ground_truth_ft_connectivity_wpli_real,
514-
atol=self.tolerance, rtol=self.tolerance, equal_nan=True)
514+
equal_nan=True)
515515

516516
def test_WPLI_ground_truth_consistency_artificial_LFP_dataset(self):
517517
"""

0 commit comments

Comments
 (0)