Skip to content

Commit

Permalink
fix testing for multiple dig in
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 authored Oct 6, 2023
1 parent 6f5dd45 commit 530a039
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_stimulus_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ def test_final_digital_data(stim):
stim.get_raw_digital_data()
stim.get_final_digital_data()
assert np.shape(stim.digital_data) == (2, 62080)
assert stim.digital_data[0, -1] == 0.0
assert stim.digital_data[0, -1] == 1
assert stim.digital_data[1, -1] == 0
assert stim.dig_in_channels[0] == 1


Expand All @@ -230,7 +231,7 @@ def test_generate_digital_events(stim):
print(stim.digital_events)
print(stim.digital_channels)
assert stim.digital_events["DIGITAL-IN-01"]["events"][0] == 1500
assert stim.digital_events["DIGITAL-IN-01"]["lengths"][0] == 14999
assert stim.digital_events["DIGITAL-IN-01"]["lengths"][0] == 1499
assert stim.digital_events["DIGITAL-IN-01"]["trial_groups"][0] == 1.0
assert stim.digital_channels[0] == "DIGITAL-IN-01"

Expand Down

0 comments on commit 530a039

Please sign in to comment.