Skip to content

Commit

Permalink
removed integrate_signal for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nuniz committed Jul 13, 2024
1 parent 4d4c95d commit 6195ce1
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tests/test_cd_integral.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
apply_filter,
coincidence_integral,
create_trapezoid_kernel,
integrate_signal,
)


Expand All @@ -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)
Expand Down

0 comments on commit 6195ce1

Please sign in to comment.