Skip to content

Commit de0ee38

Browse files
committed
add support for eeg and lfp formats with neuroscope - PEP correction #1
1 parent 049fbe8 commit de0ee38

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

neo/rawio/neuroscoperawio.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def _source_name(self):
3737

3838
def _parse_header(self):
3939
file_path = Path(self.filename)
40-
40+
4141
supported_data_extensions = ['.dat', '.lfp', '.eeg']
4242
suffix = file_path.suffix
4343
if suffix == '.xml':
@@ -48,8 +48,12 @@ def _parse_header(self):
4848
self.data_extension = ".dat"
4949
elif suffix in supported_data_extensions:
5050
self.data_extension = suffix
51-
else:
52-
raise KeyError(f"Format {suffix} not supported, filename format should be {supported_data_extensions} or xml")
51+
else:
52+
error_string = (
53+
f"Format {suffix} not supported"
54+
f"filename format should be {supported_data_extensions} or xml"
55+
)
56+
raise KeyError(error_string)
5357

5458
xml_file_path = file_path.with_suffix(".xml")
5559
tree = ElementTree.parse(xml_file_path)

0 commit comments

Comments
 (0)