Skip to content

Commit

Permalink
Merge pull request #1388 from h-mayorquin/add_is_parsed_flag
Browse files Browse the repository at this point in the history
Add `is_header_parsed` flag to quickly check if header information is available in `BaseRawIO`
  • Loading branch information
samuelgarcia authored Jan 31, 2024
2 parents 3af1010 + e3742da commit 790d09c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions neo/rawio/baserawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def __init__(self, use_cache: bool = False, cache_path: str = 'same_as_resource'
self._cache = None

self.header = None
self.is_header_parsed = False

def parse_header(self):
"""
Expand All @@ -178,6 +179,7 @@ def parse_header(self):
"""
self._parse_header()
self._check_stream_signal_channel_characteristics()
self.is_header_parsed = True

def source_name(self):
"""Return fancy name of file source"""
Expand Down

0 comments on commit 790d09c

Please sign in to comment.