File: reference.rst

package info (click to toggle)
bcolz 1.2.1%2Bds2-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,612 kB
  • sloc: python: 9,691; makefile: 150; sh: 26; ansic: 11
file content (133 lines) | stat: -rw-r--r-- 2,829 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
-----------------
Library Reference
-----------------

.. currentmodule:: bcolz

First level variables
=====================

.. py:attribute:: __version__

    The version of the bcolz package.

.. py:attribute:: dask_here

    Whether the minimum version of dask has been detected.

.. py:attribute:: min_dask_version

    The minimum version of dask needed (dask is optional).

.. py:attribute:: min_numexpr_version

    The minimum version of numexpr needed (numexpr is optional).

.. py:attribute:: ncores

    The number of cores detected.

.. py:attribute:: numexpr_here

    Whether the minimum version of numexpr has been detected.


Top level classes
=================

.. autoclass:: cparams
   :members: setdefaults

.. autoclass:: bcolz.attrs.attrs

Also, see the :py:class:`carray` and :py:class:`ctable` classes below.

.. _top-level-constructors:

Top level functions
===================

.. autofunction:: arange

.. autofunction:: eval

.. autofunction:: fill

.. autofunction:: fromiter

.. autofunction:: iterblocks

.. autofunction:: ones

.. autofunction:: zeros

.. autofunction:: open

.. autofunction:: walk


Top level printing functions
============================

.. py:function:: array2string(a, max_line_width=None, precision=None, suppress_small=None, separator=' ', prefix="", style=repr, formatter=None)

    Return a string representation of a carray/ctable object.

    This is the same function than in NumPy.  Please refer to NumPy
    documentation for more info.

    See Also:
      :py:func:`set_printoptions`, :py:func:`get_printoptions`

.. py:function:: get_printoptions()

    Return the current print options.

    This is the same function than in NumPy.  For more info, please
    refer to the NumPy documentation.

    See Also:
      :py:func:`array2string`, :py:func:`set_printoptions`

.. py:function:: set_printoptions(precision=None, threshold=None, edgeitems=None, linewidth=None, suppress=None, nanstr=None, infstr=None, formatter=None)

    Set printing options.

    These options determine the way floating point numbers in carray
    objects are displayed.  This is the same function than in NumPy.
    For more info, please refer to the NumPy documentation.

    See Also:
      :py:func:`array2string`, :py:func:`get_printoptions`

Utility functions
=================

.. autofunction:: set_nthreads

.. autofunction:: blosc_set_nthreads

.. autofunction:: detect_number_of_cores

.. autofunction:: blosc_version

.. autofunction:: print_versions

.. autofunction:: test


The carray class
================

.. autoclass:: carray
   :members:
   :special-members: __getitem__, __setitem__

The ctable class
================

.. this is needed because the ctable class resides in the ctable module
.. currentmodule:: bcolz.ctable

.. autoclass:: ctable
   :members: