-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
The f
attribute of the object returned by numpy.load is not documented
#6337
Comments
Interesting. |
It is described in the docstring for np.lib.npyio.NpzFile (which it looks On Sun, Sep 20, 2015 at 8:49 PM, Charles Harris notifications@github.com
Nathaniel J. Smith -- http://vorpus.org |
@njsmith Thanks. I've updated my answer on stackoverflow so that it refers to the It would be nice if the documentation could be tweaked so that the |
@njsmith is basically correct. It stood for "field" and was a short letter so that it took as little typing as possible to provide the ability to translate getattr to getitem. |
When reading an
npz
file,numpy.load
returns an object that has an attribute calledf
.f
has attributes with names and values corresponding to the names and values of the variables stored in the file. Sincef
does not have a leading underscore, I assumef
is intended to be part of the public API, butf
is not documented in the docstring ofnumpy.load
.Here's an example (see http://stackoverflow.com/questions/32682928/loading-arrays-from-npz-files-in-pythhon/32683037#32683037):
The text was updated successfully, but these errors were encountered: