From be5c08c2e2922a0b5553123d6207393c6c3a4218 Mon Sep 17 00:00:00 2001 From: Rohan Shah Date: Mon, 24 Jun 2024 12:30:53 -0400 Subject: [PATCH] simply loop range --- tests/unit/test_ecephys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_ecephys.py b/tests/unit/test_ecephys.py index ca35844a0..1ef0b7880 100644 --- a/tests/unit/test_ecephys.py +++ b/tests/unit/test_ecephys.py @@ -132,7 +132,7 @@ def test_get_data_in_units(self): data_in_units = electrical_series.get_data_in_units() - for channel_index in range(len(channel_conversion)): + for channel_index in range(channels): np.testing.assert_almost_equal( data_in_units[:, channel_index], np.ones(samples) * conversion * channel_conversion[channel_index] + offset