From 6195ce129658f2dd006504606a6a0a574da7cc43 Mon Sep 17 00:00:00 2001 From: zorea Date: Sat, 13 Jul 2024 16:43:21 +0300 Subject: [PATCH] removed integrate_signal for tests --- tests/test_cd_integral.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tests/test_cd_integral.py b/tests/test_cd_integral.py index 5da2dd9..92add80 100644 --- a/tests/test_cd_integral.py +++ b/tests/test_cd_integral.py @@ -7,7 +7,6 @@ apply_filter, coincidence_integral, create_trapezoid_kernel, - integrate_signal, ) @@ -30,23 +29,6 @@ def test_apply_filter(self): self.assertEqual(result_f.shape, x.shape) self.assertEqual(result_l.shape, x.shape) - def test_integrate_signal_trapz(self): - """Test the integrate_signal function using the trapezoidal method.""" - x = np.linspace(0, 1, 10) - dt = 0.1 - delta_samples = 5 - expected_length = len(x) - result = integrate_signal(x, dt, delta_samples, "trapz") - self.assertEqual(len(result), expected_length) - - def test_integrate_signal_unknown_method(self): - """Test the integrate_signal function for error handling.""" - x = np.linspace(0, 1, 10) - dt = 0.1 - delta_samples = 5 - with self.assertRaises(ValueError): - integrate_signal(x, dt, delta_samples, "unknown_method") - def test_coincidence_integral(self): """Test the coincidence_integral function for various integration methods.""" x = np.random.randn(3, 100)