def test_get_reader(self, file_type): with patched_cmlreader(): reader = CMLReader(subject='R1405E', localization=0, experiment='FR1', session=0, montage=0) reader_obj = reader.get_reader(file_type) assert type(reader_obj) == reader.readers[file_type]
def events(): with patched_cmlreader(): cml_reader = CMLReader("R1389J") path = resource_filename('cmlreaders.test.data', 'all_events.json') reader = cml_reader.get_reader('events', file_path=path) return reader.as_dataframe()