Skip to content

Commit

Permalink
Merge pull request #584 from catalystneuro/fix_waveform_extractor_tes…
Browse files Browse the repository at this point in the history
…ting

Fix dev tests  (waveform quality metrics bug)
  • Loading branch information
CodyCBakerPhD authored Oct 5, 2023
2 parents 144cd8d + e464b98 commit 44397a8
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/test_ecephys/test_tools_spikeinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1137,9 +1137,6 @@ def test_write_bool_properties(self):
assert all(tb in ["False", "True"] for tb in self.nwbfile.units["test_bool"][:])


@unittest.skipIf(
version.parse(python_version()) < version.parse("3.8"), "SpikeInterface.extract_waveforms() requires Python>=3.8"
)
class TestWriteWaveforms(TestCase):
@classmethod
def setUpClass(cls):
Expand All @@ -1149,10 +1146,12 @@ def setUpClass(cls):

cls.num_units = 4
cls.num_channels = 4
single_segment_rec = generate_recording(num_channels=cls.num_channels, durations=[3])
single_segment_sort = generate_sorting(num_units=cls.num_units, durations=[3])
multi_segment_rec = generate_recording(num_channels=cls.num_channels, durations=[3, 4])
multi_segment_sort = generate_sorting(num_units=cls.num_units, durations=[3, 4])
duration_1 = 6
duration_2 = 7
single_segment_rec = generate_recording(num_channels=cls.num_channels, durations=[duration_1])
single_segment_sort = generate_sorting(num_units=cls.num_units, durations=[duration_1])
multi_segment_rec = generate_recording(num_channels=cls.num_channels, durations=[duration_1, duration_2])
multi_segment_sort = generate_sorting(num_units=cls.num_units, durations=[duration_1, duration_2])
single_segment_rec.annotate(is_filtered=True)
multi_segment_rec.annotate(is_filtered=True)
single_segment_rec = single_segment_rec.save()
Expand Down

0 comments on commit 44397a8

Please sign in to comment.