MCPcopy Create free account
hub / github.com/numpy/numpy / keys

Method keys

numpy/lib/_datasource.py:130–147  ·  view source on GitHub ↗

Return the keys of currently supported file openers. Parameters ---------- None Returns ------- keys : list The keys are None for uncompressed files and the file extension strings (i.e. ``'.gz'``, ``'.xz'``) for suppo

(self)

Source from the content-addressed store, hash-verified

128 self._loaded = True
129
130 def keys(self):
131 """
132 Return the keys of currently supported file openers.
133
134 Parameters
135 ----------
136 None
137
138 Returns
139 -------
140 keys : list
141 The keys are None for uncompressed files and the file extension
142 strings (i.e. ``'.gz'``, ``'.xz'``) for supported compression
143 methods.
144
145 """
146 self._load()
147 return list(self._file_openers.keys())
148
149 def __getitem__(self, key):
150 self._load()

Callers 15

parse_setuppy_commandsFunction · 0.80
mainFunction · 0.80
write_htmlMethod · 0.80
__dir__Function · 0.80
_get_formatdictFunction · 0.80
__new__Method · 0.80
einsum_pathFunction · 0.80
_internal.pyFile · 0.80
make_arraysFunction · 0.80
make_ufuncsFunction · 0.80
do_generate_apiFunction · 0.80
check_canonicalMethod · 0.80

Calls 1

_loadMethod · 0.95

Tested by 3

check_canonicalMethod · 0.64
test_npzfile_dictFunction · 0.64
test_keysFunction · 0.64