Skip to content

Commit af4dbb8

Browse files
committed
Adds test for non-stimulus alignment
1 parent f02cce8 commit af4dbb8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_chain.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ def test_load():
6565
redoLevel=1, saveLevel=0)
6666
assert (raster2.trialidx == [0, 0, 0, 0, 0, 1, 1, 1, 1]).all()
6767
assert np.isclose(raster2.spiketimes, [0., 50., 200., 300., 400., 0., 100., 200., 300.]).all()
68+
raster3 = DPT.raster.Raster(-100.0, 500.0, "reward_on", "reward_on", "stimulus2",
69+
redoLevel=1, saveLevel=0)
70+
assert (raster3.trialidx == [0, 0, 0, 1]).all()
6871
psth = DPT.psth.PSTH([-100., 200., 400., 600.], 1, trialEvent="stimulus1",
6972
sortBy="stimulus1",
7073
trialType="reward_on",

0 commit comments

Comments
 (0)