Skip to content

Commit

Permalink
Set default index element if just starting to read file
Browse files Browse the repository at this point in the history
  • Loading branch information
wbrannon committed Aug 14, 2024
1 parent 9883974 commit 57558ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/fusion_engine_client/parsers/mixed_log_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,8 @@ def filter_in_place(self, key, clear_existing: Union[bool, str] = False,
if self.index is not None:
if len(self.index) == 0:
self.next_index_elem = 0
elif prev_offset_bytes < 0:
self.next_index_elem = 0
else:
idx = np.argmax(self.index.offset > prev_offset_bytes)
if idx == 0 and self.index.offset[0] <= prev_offset_bytes:
Expand Down

0 comments on commit 57558ee

Please sign in to comment.