Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Check]: Spike times are increasing #405

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from
Prev Previous commit
Next Next commit
add test for missing_column_skip
alessandratrapani committed Sep 26, 2023
commit 673cfb02abc432aab39b1bc1d5e4c7c53518bce4
5 changes: 5 additions & 0 deletions tests/unit_tests/test_ecephys.py
Original file line number Diff line number Diff line change
@@ -232,6 +232,11 @@ def test_check_ascending_spike_times_w_missing_spike_times_pass():
assert check_ascending_spike_times(units_table=units_table) is None


def test_check_ascending_spike_times_missing_column_skip():
units_table = Units()
assert check_ascending_spike_times(units_table=units_table) is None


def test_check_ascending_spike_times_fail():
units_table = Units(name="TestUnits")
units_table.add_unit(spike_times=[0.0, 0.1])