Skip to content

Commit

Permalink
Better assert
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 authored Feb 12, 2024
1 parent 7b6af2f commit 0e757a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neo/rawio/intanbinaryrawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def _source_name(self):
def _parse_header(self):

dir_path = Path(self.dirname)
assert dir_path.is_dir(), (
"IntanBinaryRawIO requires the root " "directory containing info.rhd"
assert (dir_path / "info.rhd").exists()
"IntanBinaryRawIO requires the root directory containing the `info.rhd`"
)

header_file = dir_path / "info.rhd"
Expand Down

0 comments on commit 0e757a2

Please sign in to comment.