Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## [UNRELEASED] - YYYY-MM-DD
### Fixed
- Fix conversion to `int` for `sample_count` in XDF footer ([#173](https://github.com/xdf-modules/pyxdf/pull/173) by [Clemens Brunner](https://github.com/cbrnr))

## [1.17.5] - 2026-06-15
### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/pyxdf/pyxdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ def _truncate_corrupted_offsets(temp, streams):
sample_count_str = footer.get("sample_count", [None])[0]
if sample_count_str is None:
continue
footer_count = int(sample_count_str)
footer_count = int(float(sample_count_str)) # can be with .0 suffix

if len(stream.time_stamps) <= footer_count:
continue # No extra samples → no evidence of pylsl#67, liblsl#246
Expand Down
Loading