-
Notifications
You must be signed in to change notification settings - Fork 303
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
Use HSD blocklengths rather than assumed size #694
Conversation
…he file header, rather than relying on fixed length headers.
I also added myself to the Authors list (both in the python file and in AUTHORS.md). Happy to remove that if it's not appropriate. |
Codecov Report
@@ Coverage Diff @@
## master #694 +/- ##
=========================================
+ Coverage 79.05% 79.56% +0.5%
=========================================
Files 140 145 +5
Lines 20802 21176 +374
=========================================
+ Hits 16446 16849 +403
+ Misses 4356 4327 -29
Continue to review full report at Codecov.
|
Nice! As extra security, it would be nice if we could issue a warning when the blocklength doesn't match the size of the dtype we are using to read. Could you add that ? |
…se a warning if it does not.
…(mock_open was unused).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Previously, the AHI HSD reader navigated through a data file by using assumed-length headers. However, these headers contain descriptors that give the actual length of the header. This PR uses these descriptors to ensure that we always navigate to the correct position in the file (using file.seek) rather than just assuming that each header is always of a certain size.
git diff origin/master -- "*py" | flake8 --diff