Skip to content

Commit 96b4aed

Browse files
committed
More cross-references and low_level -> top_level
1 parent 1db0cca commit 96b4aed

File tree

3 files changed

+28
-7
lines changed

3 files changed

+28
-7
lines changed

blosc2/core.py

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,11 @@ def set_compressor(codec):
613613
-----
614614
The `compname` parameter in python-blosc API has been replaced by :paramref:`codec` , using `compname`
615615
as parameter or a string as a :paramref:`codec` value will not work.
616+
617+
See also
618+
--------
619+
:func:`~blosc2.get_compressor`
620+
:func:`~blosc2.compressor_list`
616621
"""
617622
return blosc2_ext.set_compressor(codec)
618623

@@ -670,19 +675,29 @@ def set_nthreads(nthreads):
670675
>>> oldn = blosc2.set_nthreads(2)
671676
>>> blosc2.set_nthreads(1)
672677
2
678+
679+
See also
680+
--------
681+
:func:`~blosc2.get_nthreads`
673682
"""
674683
blosc2.nthreads = nthreads
675684
return blosc2_ext.set_nthreads(nthreads)
676685

677686

678687
def compressor_list():
679688
"""
680-
Returns a list of compressors available in C library.
689+
Returns a list of compressors (codecs) available in C library.
681690
682691
Returns
683692
-------
684693
out : list
685-
The list of names.
694+
The list of codec names.
695+
696+
See also
697+
--------
698+
:func:`~blosc2.get_compressor`
699+
:func:`~blosc2.set_compressor`
700+
686701
"""
687702
return list(key.lower() for key in blosc2.Codec.__members__.keys())
688703

@@ -749,6 +764,12 @@ def get_compressor():
749764
-------
750765
out : str
751766
The name of the compressor.
767+
768+
See also
769+
--------
770+
:func:`~blosc2.set_compressor`
771+
:func:`~blosc2.compressor_list`
772+
752773
"""
753774
return blosc2_ext.get_compressor().decode()
754775

doc/reference/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ API Reference
44
.. toctree::
55
:maxdepth: 2
66

7-
low_level
7+
top_level
88
schunk_api
99
utils
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Low level API
1+
Top level API
22
=============
33

44
This API is meant to be compatible with the existing python-blosc API. There could be some parameters that are called differently, but other than that, they are largely compatible.
@@ -9,7 +9,7 @@ Compress and decompress
99
-----------------------
1010

1111
.. autosummary::
12-
:toctree: autofiles/low_level/
12+
:toctree: autofiles/top_level/
1313
:nosignatures:
1414

1515
compress
@@ -29,7 +29,7 @@ Set / Get compression params
2929
----------------------------
3030

3131
.. autosummary::
32-
:toctree: autofiles/low_level/
32+
:toctree: autofiles/top_level/
3333
:nosignatures:
3434

3535
clib_info
@@ -49,7 +49,7 @@ Enumerated classes
4949
------------------
5050

5151
.. autosummary::
52-
:toctree: autofiles/low_level/
52+
:toctree: autofiles/top_level/
5353
:nosignatures:
5454

5555
Codec

0 commit comments

Comments
 (0)