How to use the spikeextractors.MdaSortingExtractor function in spikeextractors

To help you get started, we’ve selected a few spikeextractors examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SpikeInterface / spikeextractors / tests / test_extractors.py View on Github external
def test_mda_extractor(self):
        path1 = self.test_dir + '/mda'
        path2 = path1 + '/firings_true.mda'
        se.MdaRecordingExtractor.write_recording(self.RX, path1)
        se.MdaSortingExtractor.write_sorting(self.SX, path2)
        RX_mda = se.MdaRecordingExtractor(path1)
        SX_mda = se.MdaSortingExtractor(path2)
        self._check_recording_return_types(RX_mda)
        self._check_recordings_equal(self.RX, RX_mda)
        self._check_sorting_return_types(SX_mda)
        self._check_sortings_equal(self.SX, SX_mda)
github SpikeInterface / spikeextractors / tests / test_extractors.py View on Github external
def test_mda_extractor(self):
        path1 = self.test_dir + '/mda'
        path2 = path1 + '/firings_true.mda'
        se.MdaRecordingExtractor.write_recording(self.RX, path1)
        se.MdaSortingExtractor.write_sorting(self.SX, path2)
        RX_mda = se.MdaRecordingExtractor(path1)
        SX_mda = se.MdaSortingExtractor(path2)
        self._check_recording_return_types(RX_mda)
        self._check_recordings_equal(self.RX, RX_mda)
        self._check_sorting_return_types(SX_mda)
        self._check_sortings_equal(self.SX, SX_mda)
github SpikeInterface / spiketoolkit / spiketoolkit / sorters / mountainsort4 / mountainsort4.py View on Github external
def get_result_from_folder(output_folder):
        sorting = se.MdaSortingExtractor(str(output_folder / 'firings.mda'))
        return sorting