Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)
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)
def get_result_from_folder(output_folder):
sorting = se.MdaSortingExtractor(str(output_folder / 'firings.mda'))
return sorting