Skip to content

Commit

Permalink
fix place of to path logic
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Jun 1, 2023
1 parent 92a5086 commit 17b4abe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions neo/rawio/neuroscoperawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def __init__(self, filename, binary_file=None):
- It assumes that the XML file has the same name and a .xml extension.
"""
BaseRawIO.__init__(self)
self.filename = Path(filename)
self.binary_file = Path(binary_file) if binary_file is not None else None
self.filename = filename
self.binary_file = binary_file

def _source_name(self):
return Path(self.filename).stem
Expand Down Expand Up @@ -166,7 +166,9 @@ def _resolve_xml_and_data_paths(self):
"""

supported_extensions = ['.dat', '.lfp', '.eeg']

self.filename = Path(self.filename)
self.binary_file = Path(self.binary_file) if self.binary_file is not None else None

if self.filename.suffix == '.xml':
xml_file_path = self.filename
data_file_path = self.binary_file
Expand Down

0 comments on commit 17b4abe

Please sign in to comment.