8000 BUG: fix I/O issue with failing np.fromfile by kohr-h · Pull Request #736 · odlgroup/odl · GitHub
[go: up one dir, main page]

Skip to content

BUG: fix I/O issue with failing np.fromfile #736

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

Merged
merged 1 commit into from
Nov 24, 2016
Merged

Conversation

kohr-h
Copy link
Member
@kohr-h kohr-h commented Nov 24, 2016

Fixes an I/O bug that a user encountered. Basically np.fromfile refused to read from a file which was open by all measures. The error was similar to the one in this issue but the mentioned potential solution of unbuffered reading did not do the trick. I went for low-level reading into the array buffer instead, which solves the issue.

@kohr-h kohr-h force-pushed the fix_np_fromfile branch 2 times, most recently from cb703c1 to 458c133 Compare November 24, 2016 17:01
Copy link
Member
@adler-j adler-j left a comment

Choose a reason for hiding this comment

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

Fine for me, go ahead.

@kohr-h kohr-h merged commit 7261e09 into master Nov 24, 2016
@kohr-h kohr-h deleted the fix_np_fromfile branch November 24, 2016 17:48
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
0