We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Eric raises a good point, that
someone might [be] exploring the API, and just try to read all variables from a 50 GB dataset into memory, without realizing it.
A solution may be to query the file with a psutil call before any read, and if the file is >80% of the total available memory:
psutil
force=True
This seems like a reasonable compromise between "swim at your own risk" and recklessness.
Originally suggested by @ericbarefoot in #2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Eric raises a good point, that
A solution may be to query the file with a
psutil
call before any read, and if the file is >80% of the total available memory:force=True
to the read call will override our warning and proceed.This seems like a reasonable compromise between "swim at your own risk" and recklessness.
Originally suggested by @ericbarefoot in #2
The text was updated successfully, but these errors were encountered: