Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix misleading error on opening empty file #283

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Conversation

maxnoe
Copy link
Member

@maxnoe maxnoe commented Oct 17, 2024

@vmharvey this should fix the issue with opening empty files you reported in #282

@maxnoe maxnoe requested a review from orelgueta October 17, 2024 12:19
Copy link
Contributor

@orelgueta orelgueta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the changes look good, approving.

Just one small comment I thought about while looking into the code:
Wouldn't it be a bit more efficient for is_eventio to return also the file type so that it is not necessary to read the marker a second time in the init of EventIOFile?

@maxnoe
Copy link
Member Author

maxnoe commented Oct 17, 2024

Wouldn't it be a bit more efficient for is_eventio to return also the file type so that it is not necessary to read the marker a second time in the init of EventIOFile?

Ah yes, will open another PR

@maxnoe maxnoe merged commit c953b2a into main Oct 17, 2024
10 checks passed
@maxnoe maxnoe deleted the fix_error_on_empty branch October 17, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants