-
Notifications
You must be signed in to change notification settings - Fork 45
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
DOLfYN issue reading large AD2CP files #366
Comments
agreed that the file size is an issue, but the errors in that case seem different. The |
Huh, that size shouldn't be an issue for a 64-bit integer. For the future, it's usually a good idea to configure the instrument to save multiple files instead of just one 12 Gb file. One so if the file gets corrupted you don't lose everything, and two because it's easier to download a bunch of <1 Gb files. |
Definitely agreed on the second point, I'll certainly convey that to this user. On the first point, IMO the error message is a bit ambiguous about the specific c integer type that the python int is converted to. As it throws an error I assumed it must be a C |
In testing this file, the |
Describe the bug:
When using DOLfYN to read a large (12GB) Nortek Signature 1000 .ad2cp file, the initialization of
_Ad2cpReader
fails due to the file size. In this case,_Ad2cpReader._check_header()
calls_reopen()
withbufsize = self._eof
, which is equivalent to the file size in bytes (~12e9). This value is too large for python to convert to a C int behind the scenes. Thenens
argument is not used here, and I cannot see any other user-facing arguments that can get around this issue.I can manually decrease
_eof
during debugging and the rest of theread
function continues as expected, though of course I don't know if the headers are being determined successfully by_check_header
. @jmcvey3 do you have a work around for files this size?To Reproduce:
@akeeste can send a link to the file in question if needed
Minimal working example:
Using the develop branch:
Expected behavior:
Expected large file size to not be an issue when nens is used.
Screenshots:
Error messages:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: