Skip to content

Commit

Permalink
added automatic last revision to consistency checking
Browse files Browse the repository at this point in the history
  • Loading branch information
grg2rsr committed Dec 17, 2024
1 parent 1ab3d11 commit 22feb6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ibl_to_nwb/testing/_consistency_checks.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from pathlib import Path

import numpy as np
from brainbox.io.one import SpikeSortingLoader
from numpy.testing import assert_array_equal, assert_array_less
from one.api import ONE
from pandas.testing import assert_frame_equal
from pynwb import NWBHDF5IO, NWBFile
from brainbox.io.one import SpikeSortingLoader


def check_written_nwbfile_for_consistency(*, one: ONE, nwbfile_path: Path):
Expand Down Expand Up @@ -176,7 +176,7 @@ def _check_spike_sorting_data(*, eid: str, one: ONE, nwbfile: NWBFile, revision:
probe_names = units_table["probe_name"].unique()

if revision is None:
revision = one.list_revisions(eid)[-1]
revision = one.list_revisions(session)[-1]

spike_times = {}
spike_clusters = {}
Expand Down

0 comments on commit 22feb6a

Please sign in to comment.