Skip to content

Commit e5e75d9

Browse files
Merge branch 'main' into ctable4
2 parents 8d4603b + 2ca5eeb commit e5e75d9

20 files changed

Lines changed: 254 additions & 237 deletions

doc/conf.py

Lines changed: 1 addition & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import numpy as np
77

88
import blosc2
9-
from blosc2.utils import constructors, elementwise_funcs, reducers
9+
from blosc2.utils import elementwise_funcs, reducers
1010

1111

1212
def genbody(f, func_list, lib="blosc2"):
@@ -149,38 +149,6 @@ def genbody(f, func_list, lib="blosc2"):
149149
)
150150
genbody(f, blosc2_dtypefuncs)
151151

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-
184152
# GENERATE linear_algebra.rst
185153
linalg_funcs = [
186154
name
@@ -219,50 +187,6 @@ def genbody(f, func_list, lib="blosc2"):
219187
)
220188
genbody(f, sorted(reducers))
221189

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-
266190
hidden = "_ignore_multiple_size"
267191

268192

doc/getting_started/overview.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ and tools in the Python ecosystem, including:
3434
* DSL kernels for miniexpr-backed UDF authoring and validation (see
3535
`this tutorial <https://www.blosc.org/python-blosc2/getting_started/tutorials/03.lazyarray-udf-kernels.html>`_).
3636
* By making use of the simple and open
37-
`C-Blosc2 format <https://github.com/Blosc/c-blosc2/blob/main/README_FORMAT.rst>`_
38-
for storing compressed data, Python-Blosc2 facilitates seamless integration with many other
39-
systems and tools.
37+
`C-Blosc2 format <https://github.com/Blosc/c-blosc2/blob/main/README_FORMAT.rst>`_
38+
for storing compressed data, Python-Blosc2 facilitates seamless integration with many other
39+
systems and tools.
4040

4141
Python-Blosc2's compute engine
4242
==============================
@@ -211,7 +211,7 @@ libraries such as NumExpr. Python-Blosc2's compression and chunking means the
211211
arrays may be stored compressed in memory and then processed chunk-by-chunk;
212212
both memory footprint and execution time is greatly reduced compared to
213213
Dask+Zarr, which also uses compression (see the
214-
`benchmark here <https://github.com/Blosc/python-blosc2/blob/main/bench/ndarray/lazyarray-dask-large.ipynb>`_).
214+
`larger benchmark here <https://github.com/Blosc/python-blosc2/blob/main/bench/ndarray/lazyarray-dask-large.ipynb>`_).
215215

216216
.. image:: https://github.com/Blosc/python-blosc2/blob/main/images/lazyarray-dask-large.png?raw=true
217217
:width: 100%
@@ -255,7 +255,7 @@ expression, where the operands are on disk, with the result being a
255255
1D array stored in memory (or optionally on disk via the ``out=``
256256
parameter in ``compute()`` or ``sum()`` functions). For a more in-depth look at
257257
this example, with performance comparisons, see this
258-
`blog post <https://ironarray.io/blog/compute-bigger>`_.
258+
`compute-bigger blog post <https://ironarray.io/blog/compute-bigger>`_.
259259

260260
Hopefully, this overview has provided a good understanding of Python-Blosc2's
261261
capabilities. To begin your journey with Python-Blosc2, proceed to the

doc/reference/additional_funcs.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Their result is typically a :ref:`LazyExpr` instance, which can be evaluated (wi
1616
clip
1717
contains
1818
endswith
19-
get_matmul_library
2019
imag
2120
lower
2221
real
@@ -31,7 +30,6 @@ Their result is typically a :ref:`LazyExpr` instance, which can be evaluated (wi
3130
.. autofunction:: blosc2.clip
3231
.. autofunction:: blosc2.contains
3332
.. autofunction:: blosc2.endswith
34-
.. autofunction:: blosc2.get_matmul_library
3533
.. autofunction:: blosc2.imag
3634
.. autofunction:: blosc2.lower
3735
.. autofunction:: blosc2.real

doc/reference/classes.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ Main Classes
1010
CTable
1111
Column
1212
NDArray
13-
Index
1413
NDField
1514
LazyArray
1615
C2Array
1716
Array
17+
BatchArray
18+
VLArray
1819
SChunk
1920
DictStore
2021
TreeStore
2122
EmbedStore
22-
BatchArray
23-
VLArray
23+
Index
2424
Ref
2525
Proxy
2626
ProxySource
@@ -32,8 +32,7 @@ Main Classes
3232

3333
ctable
3434
ndarray
35-
index
36-
ndfield
35+
index_class
3736
lazyarray
3837
c2array
3938
array
@@ -43,6 +42,7 @@ Main Classes
4342
embed_store
4443
batch_array
4544
vlarray
45+
ndfield
4646
ref
4747
proxy
4848
proxysource

doc/reference/dict_store.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Quick example
7070
.. automethod:: __init__
7171

7272
Dictionary Interface
73-
-------------------
73+
--------------------
7474
.. automethod:: __getitem__
7575
.. automethod:: __setitem__
7676
.. automethod:: __delitem__

doc/reference/embed_store.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Quickstart
8181
.. autofunction:: estore_from_cframe
8282

8383
Dictionary Interface
84-
-------------------
84+
--------------------
8585
.. automethod:: __getitem__
8686
.. automethod:: __setitem__
8787
.. automethod:: __delitem__

doc/reference/index.rst

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
Index
2-
=====
1+
API Reference
2+
=============
33

4-
.. currentmodule:: blosc2
4+
.. toctree::
5+
:maxdepth: 2
56

6-
.. autoclass:: Index
7-
:members:
8-
:member-order: groupwise
7+
classes
8+
array_operations
9+
misc
10+
low_level
11+
storage
12+
save_load
13+
utilities

doc/reference/index_funcs.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
Indexing and Manipulation Functions and Utilities
2-
=======================================
2+
=================================================
33

44
The following functions are useful for performing indexing and other associated operations.
55

66
.. currentmodule:: blosc2
77

88
.. autosummary::
99

10-
argsort
1110
broadcast_to
1211
concat
1312
count_nonzero
1413
expand_dims
15-
iter_sorted
1614
meshgrid
1715
sort
1816
squeeze
@@ -22,12 +20,10 @@ The following functions are useful for performing indexing and other associated
2220

2321

2422

25-
.. autofunction:: blosc2.argsort
2623
.. autofunction:: blosc2.broadcast_to
2724
.. autofunction:: blosc2.concat
2825
.. autofunction:: blosc2.count_nonzero
2926
.. autofunction:: blosc2.expand_dims
30-
.. autofunction:: blosc2.iter_sorted
3127
.. autofunction:: blosc2.meshgrid
3228
.. autofunction:: blosc2.sort
3329
.. autofunction:: blosc2.squeeze

doc/reference/lazyarray.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ This is an API interface for computing an expression or a Python user defined fu
77

88
You can get an object following the LazyArray API with any of the following ways:
99

10-
* Any expression that involves one or more NDArray objects. e.g. ``a + b``, where ``a`` and ``b`` are NDArray objects (see `this tutorial <../getting_started/tutorials/03.lazyarray-expressions.html>`_).
10+
* Any expression that involves one or more NDArray objects. e.g. ``a + b``, where ``a`` and ``b`` are NDArray objects (see `the lazyarray expressions tutorial <../getting_started/tutorials/03.lazyarray-expressions.html>`_).
1111
* Using the ``lazyexpr`` constructor.
1212
* Using the ``lazyudf`` constructor (see `a tutorial <../getting_started/tutorials/03.lazyarray-udf.html>`_).
13-
* Using ``@dsl_kernel`` and ``lazyudf`` for miniexpr-backed DSL kernels (see `this tutorial <../getting_started/tutorials/03.lazyarray-udf-kernels.html>`_).
13+
* Using ``@dsl_kernel`` and ``lazyudf`` for miniexpr-backed DSL kernels (see `the DSL kernels tutorial <../getting_started/tutorials/03.lazyarray-udf-kernels.html>`_).
1414

1515
The LazyArray object is a thin wrapper around the expression or user-defined function that allows for lazy computation. This means that the expression is not computed until the ``compute`` or ``__getitem__`` methods are called. The ``compute`` method will return a new NDArray object with the result of the expression evaluation. The ``__getitem__`` method will return an NumPy object instead.
1616

@@ -33,12 +33,10 @@ See the `LazyExpr`_ and `LazyUDF`_ sections for more information.
3333
.. autosummary::
3434

3535
__getitem__
36-
will_use_index
3736

3837
Methods
3938
---------------
4039
.. automethod:: __getitem__
41-
.. automethod:: will_use_index
4240

4341
Attributes
4442
----------

doc/reference/misc.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ This page documents the miscellaneous members of the ``blosc2`` module that do n
1313
evaluate,
1414
get_expr_operands,
1515
validate_expr,
16+
Index,
17+
Array,
18+
BatchArray,
19+
Ref,
1620
jit,
1721
matmul,
1822
tensordot,
@@ -230,6 +234,5 @@ This page documents the miscellaneous members of the ``blosc2`` module that do n
230234
round,
231235
are_partitions_aligned,
232236
are_partitions_behaved,
233-
indices,
234237
cumulative_sum,
235238
cumulative_prod,

0 commit comments

Comments
 (0)