Skip to content

Commit 0687519

Browse files
authored
update tests to account for rounding up index number
1 parent 9549603 commit 0687519

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neo/test/iotest/test_proxyobjects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ def test_AnalogSignalProxy(self):
5454
# ceil next sample when slicing
5555
anasig = proxy_anasig.load(time_slice=(1.99999 * pq.s, 5.000001 * pq.s))
5656
assert anasig.t_start == 2. * pq.s
57-
assert anasig.duration == 3. * pq.s
58-
assert anasig.shape == (30000, 8)
57+
assert anasig.duration == 3.0001 * pq.s
58+
assert anasig.shape == (30001, 8)
5959

6060
# buggy time slice
6161
with self.assertRaises(AssertionError):

0 commit comments

Comments
 (0)