|
6 | 6 | import numpy as np |
7 | 7 |
|
8 | 8 | import blosc2 |
9 | | -from blosc2.utils import constructors, elementwise_funcs, reducers |
| 9 | +from blosc2.utils import elementwise_funcs, reducers |
10 | 10 |
|
11 | 11 |
|
12 | 12 | def genbody(f, func_list, lib="blosc2"): |
@@ -149,38 +149,6 @@ def genbody(f, func_list, lib="blosc2"): |
149 | 149 | ) |
150 | 150 | genbody(f, blosc2_dtypefuncs) |
151 | 151 |
|
152 | | -# GENERATE index_funcs.rst |
153 | | -blosc2_indexfuncs = sorted( |
154 | | - [ |
155 | | - "count_nonzero", |
156 | | - "squeeze", |
157 | | - "expand_dims", |
158 | | - "sort", |
159 | | - "take", |
160 | | - "take_along_axis", |
161 | | - "broadcast_to", |
162 | | - "meshgrid", |
163 | | - "indices", |
164 | | - "concat", |
165 | | - "stack", |
166 | | - ] |
167 | | -) |
168 | | - |
169 | | -with open("reference/index_funcs.rst", "w") as f: |
170 | | - f.write( |
171 | | - """Indexing and Manipulation Functions and Utilities |
172 | | -======================================= |
173 | | -
|
174 | | -The following functions are useful for performing indexing and other associated operations. |
175 | | -
|
176 | | -.. currentmodule:: blosc2 |
177 | | -
|
178 | | -.. autosummary:: |
179 | | -
|
180 | | -""" |
181 | | - ) |
182 | | - genbody(f, blosc2_indexfuncs) |
183 | | - |
184 | 152 | # GENERATE linear_algebra.rst |
185 | 153 | linalg_funcs = [ |
186 | 154 | name |
@@ -219,50 +187,6 @@ def genbody(f, func_list, lib="blosc2"): |
219 | 187 | ) |
220 | 188 | genbody(f, sorted(reducers)) |
221 | 189 |
|
222 | | -with open("reference/ndarray.rst", "w") as f: |
223 | | - f.write( |
224 | | - """.. _NDArray: |
225 | | -
|
226 | | -NDArray |
227 | | -======= |
228 | | -
|
229 | | -The multidimensional data array class. Instances may be constructed using the constructor functions in the list below `NDArrayConstructors`_. |
230 | | -In addition, all the functions from the :ref:`Lazy Functions <lazy_functions>` section can be used with NDArray instances. |
231 | | -
|
232 | | -.. currentmodule:: blosc2 |
233 | | -
|
234 | | -.. autoclass:: NDArray |
235 | | - :members: |
236 | | - :inherited-members: |
237 | | - :exclude-members: get_slice, set_slice, get_slice_numpy, get_oindex_numpy, set_oindex_numpy |
238 | | - :member-order: groupwise |
239 | | -
|
240 | | - :Special Methods: |
241 | | -
|
242 | | - .. autosummary:: |
243 | | -
|
244 | | - __iter__ |
245 | | - __len__ |
246 | | - __getitem__ |
247 | | - __setitem__ |
248 | | -
|
249 | | - Utility Methods |
250 | | - --------------- |
251 | | -
|
252 | | - .. automethod:: __iter__ |
253 | | - .. automethod:: __len__ |
254 | | - .. automethod:: __getitem__ |
255 | | - .. automethod:: __setitem__ |
256 | | -
|
257 | | -Constructors |
258 | | ------------- |
259 | | -.. _NDArrayConstructors: |
260 | | -.. autosummary:: |
261 | | -
|
262 | | -""" |
263 | | - ) |
264 | | - genbody(f, sorted(constructors)) |
265 | | - |
266 | 190 | hidden = "_ignore_multiple_size" |
267 | 191 |
|
268 | 192 |
|
|
0 commit comments